From: skaller <skaller@users.sourceforge.net>
To: caml-list@pauillac.inria.fr
Subject: [Caml-list] Re: Ocamlgraph build error
Date: 01 Apr 2004 08:03:01 +1000 [thread overview]
Message-ID: <1080770580.13854.126.camel@pelican> (raw)
[skaller@pelican] /usr/local/src/ocamlgraph-0.70>ocamlc bitv.ml
File "bitv.ml", line 561, characters 57-67:
Integer literal exceeds the range of representable integers of type int
[The actual failure is in ocamldep]
let of_int32_s i = match Sys.word_size with
| 32 -> { length = 32;
bits = [| (Int32.to_int i) land max_int;
let hi = Int32.shift_right_logical i 30 in
(Int32.to_int hi) land 3 |] }
| 64 -> { length = 32; bits = [| (Int32.to_int i) land 0xffffffff |] }
| _ -> assert false
Seems the fault is in the constant 0xffffffff which of course
isn't a valid int on my 32 bit machine. You could use
(0xffff lsl 16) lor 0xffff
instead in the hope the compiler doesn't fold it,
but ultimately if the compiler is smart enough
you really must use conditional compilation.
--
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850,
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next reply other threads:[~2004-03-31 22:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-31 22:03 skaller [this message]
2004-04-01 9:15 ` skaller
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=1080770580.13854.126.camel@pelican \
--to=skaller@users.sourceforge.net \
--cc=caml-list@pauillac.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