Skip to content

Commit 81185ee

Browse files
committed
Fix bug for Dupe representation.
1 parent c5df5ad commit 81185ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ziggy/src/types.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
[else (error "invalid bits")]))
6464

6565
(define (value->bits v)
66-
(cond [(eq? v #t) {:> D0 H0} #b011 {:> H0} #b00011000]
67-
[(eq? v #f) {:> D0 H0} #b111 {:> H0} #b00111000]
66+
(cond [(eq? v #t) {:> D0 D1} #b01 {:> D1 H0} #b011 {:> H0} #b00011000]
67+
[(eq? v #f) {:> D0 D1} #b11 {:> D1 H0} #b111 {:> H0} #b00111000]
6868
[(integer? v) (arithmetic-shift v int-shift)]
6969
{:> E0} [(eof-object? v) {:> E0 H0} #b1011 {:> H0} #b01011000]
7070
{:> E0} [(void? v) {:> E0 H0} #b1111 {:> H0} #b01111000]

0 commit comments

Comments
 (0)