Skip to content

Commit

Permalink
Fix bug for Dupe representation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanhorn committed Feb 26, 2024
1 parent c5df5ad commit 81185ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ziggy/src/types.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
[else (error "invalid bits")]))

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

0 comments on commit 81185ee

Please sign in to comment.