Skip to content
Snippets Groups Projects
Commit 373164d1 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix: Work around Py26 struct packing bug

parent 94ff7ab2
No related merge requests found
......@@ -59,7 +59,7 @@ def pack_py26(type_char, obj):
return _pack('f', obj.real) + _pack('f', obj.imag)
elif type_char == "D":
return _pack('d', obj.real) + _pack('d', obj.imag)
elif type_char in "LD":
elif type_char in "IL":
return _pack(type_char, long(obj))
else:
return _pack(_type_char_map.get(type_char, type_char), obj)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment