[pypy-svn] r61582 - pypy/trunk/pypy/rpython/lltypesystem

afa at codespeak.net afa at codespeak.net
Fri Feb 6 15:51:02 CET 2009


Author: afa
Date: Fri Feb  6 15:51:02 2009
New Revision: 61582

Modified:
   pypy/trunk/pypy/rpython/lltypesystem/rffi.py
Log:
Fix rffi for platforms where wchar_t is 'typedef int'.


Modified: pypy/trunk/pypy/rpython/lltypesystem/rffi.py
==============================================================================
--- pypy/trunk/pypy/rpython/lltypesystem/rffi.py	(original)
+++ pypy/trunk/pypy/rpython/lltypesystem/rffi.py	Fri Feb  6 15:51:02 2009
@@ -688,7 +688,7 @@
     if tp is lltype.Char:
         return 1
     if tp is lltype.UniChar:
-        return WCHAR_T._type.BITS/8
+        return r_wchar_t.BITS/8
     if tp is lltype.Float:
         return 8
     assert isinstance(tp, lltype.Number)



More information about the Pypy-commit mailing list