You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Iain Proctor (JIRA)" <ji...@apache.org> on 2008/08/25 23:33:44 UTC
[jira] Updated: (THRIFT-125) OCaml libraries don't compile with
32-bit ocaml
[ https://issues.apache.org/jira/browse/THRIFT-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Iain Proctor updated THRIFT-125:
--------------------------------
Attachment: int32patch
Does this fix it?
> OCaml libraries don't compile with 32-bit ocaml
> -----------------------------------------------
>
> Key: THRIFT-125
> URL: https://issues.apache.org/jira/browse/THRIFT-125
> Project: Thrift
> Issue Type: Bug
> Environment: OCaml 3.10.2 (32-bit)
> Reporter: Kevin Ballard
> Attachments: int32patch
>
>
> TBinaryProtocol.ml contains integers outside the range of 32-bit OCaml's native int type (specifically the version_mask and version_1). Additionally, when reading int32s off of the network it returns them as OCaml-native ints. This will behave wrong when an int >= 2**30 is sent over the network, as that will wrap on the OCaml side. I assume the author of this code used 64-bit OCaml, as the code won't even compile under 32-bit OCaml right now.
> In TBinaryProtocol 64-bit ints are kept as int64 objects. The same should be done with 32-bit int values.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.