Commits

Armin Rigo committed 10b9935

Fix for lldebug translations. The value "1 << 32" or "1 << 64" is
computed, triggering an assert, but never used.

Comments (0)

Files changed (1)

pypy/module/_cffi_backend/ctypeprim.py

     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)