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

arigo at codespeak.net arigo at codespeak.net
Wed Mar 11 12:18:10 CET 2009


Author: arigo
Date: Wed Mar 11 12:18:08 2009
New Revision: 62849

Modified:
   pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
Cancel accidentally reverted fix (e.g. for pypy/rlib/test/test_rzipfile).


Modified: pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py
==============================================================================
--- pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py	(original)
+++ pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py	Wed Mar 11 12:18:08 2009
@@ -929,14 +929,12 @@
         return annmodel.lltype_to_annotation(RESTYPE)
 
     def specialize_call(self, hop):
-        from pypy.rpython.rbuiltin import gen_cast
         hop.exception_cannot_occur()
         s_RESTYPE = hop.args_s[0]
         assert s_RESTYPE.is_constant()
         RESTYPE = s_RESTYPE.const
         v_arg = hop.inputarg(hop.args_r[1], arg=1)
-        TYPE1 = v_arg.concretetype
-        return gen_cast(hop.llops, RESTYPE, v_arg)
+        return hop.genop('force_cast', [v_arg], resulttype = RESTYPE)
 
 def typecheck_ptradd(T):
     # --- ptradd() is only for pointers to non-GC, no-length arrays.



More information about the Pypy-commit mailing list