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

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Mar 24 12:04:22 CET 2006


Author: cfbolz
Date: Fri Mar 24 12:04:21 2006
New Revision: 24945

Modified:
   pypy/branch/explicit-exceptions/translator/c/exceptiontransform.py
Log:
(mwh, abusing carl's screen + clean checkout on snake :)
add error values for long long types.


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 12:04:21 2006
@@ -6,10 +6,12 @@
 from pypy.rpython.lltypesystem import lltype, llmemory
 from pypy.rpython.memory.lladdress import NULL
 from pypy.rpython import rclass
-from pypy.rpython.rarithmetic import r_uint
+from pypy.rpython.rarithmetic import r_uint, r_longlong, r_ulonglong
 
 PrimitiveErrorValue = {lltype.Signed: -1,
                        lltype.Unsigned: r_uint(-1),
+                       lltype.SignedLongLong: r_longlong(-1),
+                       lltype.UnsignedLongLong: r_ulonglong(-1),
                        lltype.Float: -1.0,
                        lltype.Char: chr(255),
                        lltype.Bool: True,



More information about the Pypy-commit mailing list