unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Random numbers (again) broken on 64-bit platforms
@ 2010-07-26 21:01 Andreas Rottmann
  2010-07-27  8:52 ` Andy Wingo
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Rottmann @ 2010-07-26 21:01 UTC (permalink / raw)
  To: Guile Development

Hi!

After pulling from Git today, I noticed that `random' is still/again
broken on 64-bit platforms:

scheme@(guile-user)> (random (ash 1 32))
ERROR: In procedure random:
ERROR: Argument 1 out of range: 4294967296

This looks like being caused by
b606ff6af9c9ec7fc3c4473c09ce1e95c18f024a, which doesn't take into
account (in scm_random) that an INUM may well exceed 32 bits on 64-bit
platforms. I'll try to come up with a patch for that, unless someone
beats me to it.

Regards, Rotty
-- 
Andreas Rottmann -- <http://rotty.yi.org/>



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-08-02  7:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26 21:01 Random numbers (again) broken on 64-bit platforms Andreas Rottmann
2010-07-27  8:52 ` Andy Wingo
2010-08-01 18:44   ` Andreas Rottmann
2010-08-01 19:57     ` Andy Wingo
2010-08-01 22:06       ` No Itisnt
2010-08-02  7:11         ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).