[pypy-commit] pypy py3.5: Fix array pickling for typecodes 'q' and 'Q'
rlamy
pypy.commits at gmail.com
Fri Nov 4 13:13:21 EDT 2016
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r88138:f85b187b80d2
Date: 2016-11-04 17:12 +0000
http://bitbucket.org/pypy/pypy/changeset/f85b187b80d2/
Log: Fix array pickling for typecodes 'q' and 'Q'
diff --git a/pypy/module/array/reconstructor.py b/pypy/module/array/reconstructor.py
--- a/pypy/module/array/reconstructor.py
+++ b/pypy/module/array/reconstructor.py
@@ -182,6 +182,12 @@
elif typecode == 'L':
intsize = rffi.sizeof(rffi.LONG)
is_signed = False
+ elif typecode == 'q':
+ intsize = rffi.sizeof(rffi.LONGLONG)
+ is_signed = True
+ elif typecode == 'Q':
+ intsize = rffi.sizeof(rffi.LONGLONG)
+ is_signed = False
else:
return UNKNOWN_FORMAT
if intsize == 2:
More information about the pypy-commit
mailing list