Chez Scheme: repair pseudo-random for cross compile

This commit is contained in:
Matthew Flatt 2020-08-23 16:19:25 -06:00
parent 8d96a758d0
commit 71bf119460

View File

@ -2780,7 +2780,7 @@
[(fixnum? x)
(unless (fxpositive? x) ($oops who "not a positive exact integer ~s" x))
(meta-cond
[(fixnum? 4294967087)
[(<= (constant most-negative-fixnum) 4294967087 (constant most-positive-fixnum))
(if (fx< x 4294967087)
(random-int s x)
(random-integer s x))]