Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r50286:34288a8ab7fd Date: 2011-12-07 20:35 +0100 http://bitbucket.org/pypy/pypy/changeset/34288a8ab7fd/
Log: Fix for ctypes on Python 2.5: "c_byte" is a better approximation of the missing "c_bool", although still not perfect. diff --git a/pypy/rpython/lltypesystem/ll2ctypes.py b/pypy/rpython/lltypesystem/ll2ctypes.py --- a/pypy/rpython/lltypesystem/ll2ctypes.py +++ b/pypy/rpython/lltypesystem/ll2ctypes.py @@ -112,7 +112,7 @@ rffi.LONGLONG: ctypes.c_longlong, rffi.ULONGLONG: ctypes.c_ulonglong, rffi.SIZE_T: ctypes.c_size_t, - lltype.Bool: getattr(ctypes, "c_bool", ctypes.c_long), + lltype.Bool: getattr(ctypes, "c_bool", ctypes.c_byte), llmemory.Address: ctypes.c_void_p, llmemory.GCREF: ctypes.c_void_p, llmemory.WeakRef: ctypes.c_void_p, # XXX _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit