Browse thread
Bug? Random.int max_int on AMD64 fails
- Christian Lindig
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2005-06-01 (08:14) |
From: | Christian Lindig <lindig@c...> |
Subject: | Bug? Random.int max_int on AMD64 fails |
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/