[pypy-commit] cffi default: Fix on 64-bit.

arigo noreply at buildbot.pypy.org
Fri Jun 15 15:32:33 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r365:e2e605454124
Date: 2012-06-15 15:32 +0200
http://bitbucket.org/cffi/cffi/changeset/e2e605454124/

Log:	Fix on 64-bit.

diff --git a/testing/backend_tests.py b/testing/backend_tests.py
--- a/testing/backend_tests.py
+++ b/testing/backend_tests.py
@@ -689,7 +689,7 @@
     def test_pointer_to_array(self):
         ffi = FFI(backend=self.Backend())
         p = ffi.new("int(*)[5]")
-        assert repr(p) == "<cdata 'int(* *)[5]' owning %d bytes>" % SIZE_OF_INT
+        assert repr(p) == "<cdata 'int(* *)[5]' owning %d bytes>" % SIZE_OF_PTR
 
     def test_offsetof(self):
         ffi = FFI(backend=self.Backend())


More information about the pypy-commit mailing list