[pypy-svn] r46845 - pypy/dist/pypy/translator

arigo at codespeak.net arigo at codespeak.net
Mon Sep 24 09:48:01 CEST 2007


Author: arigo
Date: Mon Sep 24 09:48:00 2007
New Revision: 46845

Modified:
   pypy/dist/pypy/translator/exceptiontransform.py
Log:
Remove an unneeded dependency on ctypes.


Modified: pypy/dist/pypy/translator/exceptiontransform.py
==============================================================================
--- pypy/dist/pypy/translator/exceptiontransform.py	(original)
+++ pypy/dist/pypy/translator/exceptiontransform.py	Mon Sep 24 09:48:00 2007
@@ -27,7 +27,7 @@
                        lltype.Void: None}
 
 for TYPE in rffi.NUMBER_TYPES:
-    PrimitiveErrorValue[TYPE] = rffi.cast(TYPE, -1)
+    PrimitiveErrorValue[TYPE] = lltype.cast_primitive(TYPE, -1)
 del TYPE
 
 def error_value(T):



More information about the Pypy-commit mailing list