I can confirm weird behavior (and I get different weird results):
Welcome to Racket v6.5.
> (define num #x)
(for ([i 5])
(printf "~a~n" (bitwise-ior (bitwise-and num -2) 0)))
2192618128
2192618180
2192618200
2192618668
2192618688
> (for ([i 5])
(printf "~a~n" (bitwise-ior
Hi all,
I get a weird behavior when using bitwise-ior and bitwise-and with large
numbers. Tested on 2 machines (racket 6.6, Ubuntu 16.04 and 14.04):
Here is the test example:
#lang racket
(define num #x) ;; remove one f, and the results are fine
in both cases
(for ([i 5])