Merge pull request #23 from jbremer/master

support hardcoded 64-bit integers (sorry, so late lol)
This commit is contained in:
Mysterie
2014-11-26 23:43:34 +01:00

View File

@@ -242,8 +242,7 @@ def load(fp):
elif marshalType == 'i': elif marshalType == 'i':
return int(unpack('i', fp.read(4))[0]) return int(unpack('i', fp.read(4))[0])
elif marshalType == 'I': elif marshalType == 'I':
raise KeyError, marshalType return unpack('q', fp.read(8))[0]
return None
elif marshalType == 'x': elif marshalType == 'x':
raise KeyError, marshalType raise KeyError, marshalType
return None return None