Re: [racket-dev] Inconsistent behavior when doing bitwise arithmetic

2016-10-13 Thread John Boyle
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

[racket-dev] Inconsistent behavior when doing bitwise arithmetic

2016-10-13 Thread peter . samarin
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])