Message115034
The problem is easy to reproduce:
>>> import xdrlib
>>> p = xdrlib.Packer()
>>> p.pack_int(-1)
__main__:1: DeprecationWarning: struct integer overflow masking is deprecated
The cause is xdrlib.Packer uses the same pack operation for both
signed and unsigned integers...
def pack_uint(self, x):
self.__buf.write(struct.pack('>L', x))
pack_int = pack_uint
...and the unsigned struct.pack('>L', x) gags on the negative value. |
|
Date |
User |
Action |
Args |
2010-08-26 22:05:03 | dep | set | recipients:
+ dep |
2010-08-26 22:05:03 | dep | set | messageid: <1282860303.06.0.424236317482.issue9696@psf.upfronthosting.co.za> |
2010-08-26 22:05:01 | dep | link | issue9696 messages |
2010-08-26 22:05:00 | dep | create | |
|