Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa83c7b commit 3346b6aCopy full SHA for 3346b6a
1 file changed
Demo/rpc/xdr.py
@@ -92,11 +92,11 @@ def unpack_uint(self):
92
# as a nonnegative Python int
93
if x < 0x80000000L: x = int(x)
94
return x
95
- if struct.unpack('i', '\0\0\0\1') == 1:
+ if struct.unpack('l', '\0\0\0\1') == 1:
96
def unpack_uint(self):
97
i = self.pos
98
self.pos = j = i+4
99
- return struct.unpack('i', self.buf[i:j])
+ return struct.unpack('l', self.buf[i:j])
100
101
def unpack_int(self):
102
x = self.unpack_uint()
0 commit comments