[pypy-svn] r24963 - pypy/branch/explicit-exceptions/translator/c

mwh at codespeak.net mwh at codespeak.net
Fri Mar 24 15:00:43 CET 2006


Author: mwh
Date: Fri Mar 24 15:00:42 2006
New Revision: 24963

Modified:
   pypy/branch/explicit-exceptions/translator/c/exceptiontransform.py
Log:
an error value for UniChr


Modified: pypy/branch/explicit-exceptions/translator/c/exceptiontransform.py
==============================================================================
--- pypy/branch/explicit-exceptions/translator/c/exceptiontransform.py	(original)
+++ pypy/branch/explicit-exceptions/translator/c/exceptiontransform.py	Fri Mar 24 15:00:42 2006
@@ -16,6 +16,7 @@
                        lltype.UnsignedLongLong: r_ulonglong(-1),
                        lltype.Float: -1.0,
                        lltype.Char: chr(255),
+                       lltype.UniChar: unichr(0xFFFF), # XXX is this always right?
                        lltype.Bool: True,
                        llmemory.Address: NULL,
                        lltype.Void: None}



More information about the Pypy-commit mailing list