[pypy-commit] pypy ffi-backend: Bah

arigo noreply at buildbot.pypy.org
Mon Jun 25 18:19:50 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: ffi-backend
Changeset: r55820:dfc73ec683e0
Date: 2012-06-25 17:29 +0200
http://bitbucket.org/pypy/pypy/changeset/dfc73ec683e0/

Log:	Bah

diff --git a/pypy/module/_ffi_backend/ctypeobj.py b/pypy/module/_ffi_backend/ctypeobj.py
--- a/pypy/module/_ffi_backend/ctypeobj.py
+++ b/pypy/module/_ffi_backend/ctypeobj.py
@@ -388,7 +388,7 @@
         value = misc.as_long_long(self.space, w_ob)
         # xxx enums
         if self.size < rffi.sizeof(lltype.SignedLongLong):
-            if r_ulonglong(value) + self.vmin > self.vrangemax:
+            if r_ulonglong(value) - self.vmin > self.vrangemax:
                 self._overflow(w_ob)
         misc.write_raw_integer_data(cdata, value, self.size)
 


More information about the pypy-commit mailing list