Author: Armin Rigo <[email protected]>
Branch:
Changeset: r49303:88acc7aafd1e
Date: 2011-11-11 13:52 +0100
http://bitbucket.org/pypy/pypy/changeset/88acc7aafd1e/
Log: Fix.
diff --git a/pypy/rpython/lltypesystem/rffi.py
b/pypy/rpython/lltypesystem/rffi.py
--- a/pypy/rpython/lltypesystem/rffi.py
+++ b/pypy/rpython/lltypesystem/rffi.py
@@ -862,7 +862,7 @@
try:
unsigned = not tp._type.SIGNED
except AttributeError:
- if (isinstance(tp, lltype.Ptr) or
+ if (not isinstance(tp, lltype.Primitive) or
tp in (FLOAT, DOUBLE) or
cast(lltype.SignedLongLong, cast(tp, -1)) < 0):
unsigned = False
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit