picty / parsifal

Parsifal : an OCaml-based parsing engine
Other
61 stars 8 forks source link

Parsifal does not compile on 32-bit systems #35

Open pictyeye opened 10 years ago

pictyeye commented 10 years ago

Due to the restriction on OCaml "int" integers (which are represented on 31 or 63 bits on 32- or 64-bit architectures), Parsifal is unable to handle properly uint32 and sint32 on a 32-bit architecture.

This even breaks Parsifal compilation, because of 32-bit litteral integers in some files (core/basePTypes.ml, formats/guid.ml, some unit tests).

uint64 is currently handled as an Int64.t. Should uint32 be represented by an Int32.t or a NativeInt.t ?