Author: Armin Rigo <[email protected]>
Branch:
Changeset: r63143:10b99353a53c
Date: 2013-04-08 17:08 +0200
http://bitbucket.org/pypy/pypy/changeset/10b99353a53c/
Log: Fix for lldebug translations. The value "1 << 32" or "1 << 64" is
computed, triggering an assert, but never used.
diff --git a/pypy/module/_cffi_backend/ctypeprim.py
b/pypy/module/_cffi_backend/ctypeprim.py
--- a/pypy/module/_cffi_backend/ctypeprim.py
+++ b/pypy/module/_cffi_backend/ctypeprim.py
@@ -162,7 +162,7 @@
def __init__(self, *args):
W_CTypePrimitive.__init__(self, *args)
self.value_fits_long = self.size <= rffi.sizeof(lltype.Signed)
- if self.size < rffi.sizeof(lltype.SignedLongLong):
+ if self.size < rffi.sizeof(lltype.Signed):
assert self.value_fits_long
sh = self.size * 8
self.vmin = r_uint(-1) << (sh - 1)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit