Browse thread
[Caml-list] Int overflow in literals
-
Marcin 'Qrczak' Kowalczyk
- Alex Baretta
- Issac Trotts
-
Xavier Leroy
-
skaller
- Marcin 'Qrczak' Kowalczyk
- Marcin 'Qrczak' Kowalczyk
- Oleg Trott
-
skaller
[
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: | -- (:) |
| From: | Marcin 'Qrczak' Kowalczyk <qrczak@k...> |
| Subject: | Re: [Caml-list] Int overflow in literals |
W li¶cie z nie, 02-11-2003, godz. 16:23, skaller pisze:
> I cannot give a specific example, but I can paint a general
> scenario: some data used with C is copied to ocaml (as text).
>
> For example 0xFFFFFFFF is too large .. but in C it converts to -1
> which is not too large :-)
Given that OCaml ints are one bit smaller than in C, I think this is
more likely to mask an error than to be correct.
--
__("< Marcin Kowalczyk
\__/ qrczak@knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
-------------------
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