[pypy-commit] pypy virtual-raw-mallocs: make the official integral type for pointers unsigned. This is in line to what cffi does
antocuni
noreply at buildbot.pypy.org
Fri Dec 21 15:59:23 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: virtual-raw-mallocs
Changeset: r59531:636ac5d781b7
Date: 2012-12-21 16:01 +0100
http://bitbucket.org/pypy/pypy/changeset/636ac5d781b7/
Log: make the official integral type for pointers unsigned. This is in
line to what cffi does
diff --git a/pypy/rlib/jit_libffi.py b/pypy/rlib/jit_libffi.py
--- a/pypy/rlib/jit_libffi.py
+++ b/pypy/rlib/jit_libffi.py
@@ -114,7 +114,7 @@
if ffi_type == types.void: return 'v'
elif ffi_type == types.double: return 'f'
elif ffi_type == types.float: return 'S'
- elif ffi_type == types.pointer: return 'i'
+ elif ffi_type == types.pointer: return 'u'
#
elif ffi_type == types.schar: return 'i'
elif ffi_type == types.uchar: return 'u'
More information about the pypy-commit
mailing list