From: "Markus Mottl" <markus.mottl@gmail.com>
To: "Erik de Castro Lopo" <mle+ocaml@mega-nerd.com>
Cc: caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] int_of_string bug
Date: Fri, 30 Mar 2007 09:38:59 -0400 [thread overview]
Message-ID: <f8560b80703300638t691888dat163518387aca085@mail.gmail.com> (raw)
In-Reply-To: <20070330155936.86654f51.mle+ocaml@mega-nerd.com>
On 3/30/07, Erik de Castro Lopo <mle+ocaml@mega-nerd.com> wrote:
> But 64 bit systems get it right.
Not really:
# int_of_string "4611686018427387903";;
- : int = 4611686018427387903
# int_of_string "4611686018427387904";;
- : int = -4611686018427387904
# int_of_string "4611686018427387905";;
Exception: Failure "int_of_string".
The problem is just shifted to bigger numbers. This problem arises
with all integer conversion functions, i.e. Int64.of_string,
Int32.of_string, Nativeint.of_string, int_of_string.
Regards
Markus
--
Markus Mottl http://www.ocaml.info markus.mottl@gmail.com
next prev parent reply other threads:[~2007-03-30 13:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-29 16:27 Yaron Minsky
2007-03-29 21:29 ` [Caml-list] " Oliver Bandel
2007-03-30 0:26 ` Yaron Minsky
2007-03-30 7:30 ` Florian Weimer
2007-03-30 8:44 ` skaller
2007-03-30 8:59 ` Andreas Rossberg
2007-03-30 9:20 ` skaller
2007-03-30 1:21 ` Brian Hurt
2007-03-30 1:26 ` Yaron Minsky
2007-03-30 4:23 ` skaller
2007-03-30 5:59 ` Erik de Castro Lopo
2007-03-30 6:22 ` skaller
2007-03-30 13:38 ` Markus Mottl [this message]
2007-04-03 17:51 ` Toby Kelsey
2007-04-03 22:37 ` ls-ocaml-developer-2006
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=f8560b80703300638t691888dat163518387aca085@mail.gmail.com \
--to=markus.mottl@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=mle+ocaml@mega-nerd.com \
/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