From: Christian Lindig <lindig@cs.uni-sb.de>
To: Caml List <caml-list@inria.fr>
Cc: caml-bugs@inria.fr
Subject: Bug? Random.int max_int on AMD64 fails
Date: Wed, 1 Jun 2005 10:14:01 +0200 [thread overview]
Message-ID: <c40bd2df651d41ea861d7e2d665a86cc@cs.uni-sb.de> (raw)
On an AMD64, OCaml 3.08.03 raises an exception for the following code:
> src > uname -a
> Linux operator 2.6.10 #1 SMP Wed Feb 16 17:00:41 CET 2005 x86_64
> GNU/Linux
>
> src > ocaml
> Objective Caml version 3.08.3
>
> # Random.int max_int;;
> Exception: Invalid_argument "Random.int".
> #
The same code poses no problem on a 32-bit machine, like the PowerPC:
> : lindig; ocaml
> Objective Caml version 3.08.0
>
> # Random.int max_int;;
> - : int = 819618234
> # ^D
> : lindig; uname -a
> Darwin jonagold.cs.uni-sb.de 7.8.0 Darwin Kernel Version 7.8.0: Wed
> Dec 22 14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC
> Power Macintosh powerpc
-- Christian
--
http://www.st.cs.uni-sb.de/~lindig/
next reply other threads:[~2005-06-01 8:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-01 8:14 Christian Lindig [this message]
2005-06-01 8:58 ` [Caml-list] " Richard Jones
2005-06-01 12:27 ` Jean-Christophe Filliatre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c40bd2df651d41ea861d7e2d665a86cc@cs.uni-sb.de \
--to=lindig@cs.uni-sb.de \
--cc=caml-bugs@inria.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox