Author: Antonio Cuni <anto.c...@gmail.com> Branch: fix-struct-unpack-Q Changeset: r87975:adfab214048f Date: 2016-10-28 18:35 +0200 http://bitbucket.org/pypy/pypy/changeset/adfab214048f/
Log: rpython fix diff --git a/pypy/module/struct/formatiterator.py b/pypy/module/struct/formatiterator.py --- a/pypy/module/struct/formatiterator.py +++ b/pypy/module/struct/formatiterator.py @@ -149,7 +149,7 @@ @specialize.argtype(1) def appendobj(self, value): - if isinstance(value, (r_uint, r_ulonglong)): + if isinstance(value, r_uint) or isinstance(value, r_ulonglong): # unsigned int: space.wrap would wrap it inside a long, but # CPython tries hard to return an int, if it fits if value <= maxint: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit