Fix 32-bit Python encoding integer issue
authorMark Slee <mcslee@apache.org>
Tue, 2 Oct 2007 04:44:48 +0000 (04:44 +0000)
committerMark Slee <mcslee@apache.org>
Tue, 2 Oct 2007 04:44:48 +0000 (04:44 +0000)
commit9b36ef3575c13aa360f1b2fac312683270978094
tree3c0651d83576a9fe1b704d690e6b8f01e7014653
parent780e4ecac988ba8aeea794631da2ea9a24c7717b
Fix 32-bit Python encoding integer issue

Summary: Python on 32-bit platforms 2.4+ wants to keep hexconstants positive, therefore converting 0x800000000 to a (long) type to keep that. This causes issues when performing comparison with a signed negative integer.

Reviewed By: dreiss

Test Plan: Python on 32 bit 2.4+ system making Thrift calls

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665287 13f79535-47bb-0310-9956-ffa450edef68
lib/py/src/protocol/TBinaryProtocol.py