[pypy-svn] r50484 - pypy/branch/applevel-ctypes2/pypy/module/_ffi

fijal at codespeak.net fijal at codespeak.net
Thu Jan 10 11:03:24 CET 2008


Author: fijal
Date: Thu Jan 10 11:03:23 2008
New Revision: 50484

Modified:
   pypy/branch/applevel-ctypes2/pypy/module/_ffi/array.py
Log:
Wuaaaa!


Modified: pypy/branch/applevel-ctypes2/pypy/module/_ffi/array.py
==============================================================================
--- pypy/branch/applevel-ctypes2/pypy/module/_ffi/array.py	(original)
+++ pypy/branch/applevel-ctypes2/pypy/module/_ffi/array.py	Thu Jan 10 11:03:23 2008
@@ -68,7 +68,7 @@
         self.alloced = False
         self.length = length
         self.shape = shape
-        if address > 0:
+        if address != 0:
             self.ll_array = rffi.cast(rffi.VOIDP, address)
         else:
             size = shape.itemsize * length



More information about the Pypy-commit mailing list