Start packaging the bz2 python module as it is needed for building Qt5
[profile/ivi/python.git] / Lib / xdrlib.py
index 796dfaf..ef172dd 100644 (file)
@@ -53,7 +53,9 @@ class Packer:
     def pack_uint(self, x):
         self.__buf.write(struct.pack('>L', x))
 
-    pack_int = pack_uint
+    def pack_int(self, x):
+        self.__buf.write(struct.pack('>l', x))
+
     pack_enum = pack_int
 
     def pack_bool(self, x):