#206: too large int constant in natty
------------------------+---------------------------------------------------
Reporter: smimram | Owner: admin
Type: Bugs | Status: new
Priority: 1 | Milestone: NEXT RELEASE
Component: Liquidsoap | Version:
Keywords: | Mac: 1
Linux: 1 | Netbsd: 1
Other: 1 | Freebsd: 1
------------------------+---------------------------------------------------
Apparently, natty won't compile on 32 bit systems :
{{{
[EMAIL PROTECTED]:~/temp/savonet/ocaml-natty$ make
make -C src all
make[1]: Entering directory `/home/stack/temp/savonet/ocaml-natty/src'
make[2]: Entering directory `/home/stack/temp/savonet/ocaml-natty/src'
making ._d/natty.d from natty.ml
File "natty.ml", line 332, characters 24-34:
Integer literal exceeds the range of representable integers of type int
Preprocessing error on file natty.ml
make[2]: *** Deleting file `._d/natty.d'
/usr/bin/ocamlfind ocamlc -package bitstring,bitstring.syntax -syntax
bitstring.syntax -linkpkg -c natty.ml
File "natty.ml", line 332, characters 24-34:
Integer literal exceeds the range of representable integers of type int
Preprocessor error
make[2]: *** [natty.cmo] Error 2
make[2]: Leaving directory `/home/stack/temp/savonet/ocaml-natty/src'
make[1]: *** [byte-code-library] Error 2
make[1]: Leaving directory `/home/stack/temp/savonet/ocaml-natty/src'
make: *** [all] Error 2
}}}
"stack" just reported this on IRC. I didn't test but it seems logical. The
incriminated line is
{{{
if version <> 0xa2805140 then
}}}
and 0xa2805140 is greater than 0x40000000 (= 1 << 30) (30 = 32 -1 for GC
-1 for sign). Should we go for Int64?
BTW : we don't have the ocaml-natty component in the tracker
--
Ticket URL: <http://savonet.rastageeks.org/ticket/206>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac