[pypy-svn] r29744 - pypy/dist/pypy/rpython/ootypesystem

antocuni at codespeak.net antocuni at codespeak.net
Fri Jul 7 16:10:12 CEST 2006


Author: antocuni
Date: Fri Jul  7 16:10:06 2006
New Revision: 29744

Modified:
   pypy/dist/pypy/rpython/ootypesystem/rbuiltin.py
Log:
(antocuni, arigo)

Use the right annotation instead of the faked one.



Modified: pypy/dist/pypy/rpython/ootypesystem/rbuiltin.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/rbuiltin.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/rbuiltin.py	Fri Jul  7 16:10:06 2006
@@ -70,8 +70,9 @@
         INSTANCE = hop.s_result.rtyper_makerepr(hop.rtyper).lowleveltype
         v_instance = hop.inputconst(ootype.Void, INSTANCE)
         hop2 = hop.copy()
-        r, s = hop2.r_s_popfirstarg()
-        hop2.v_s_insertfirstarg(v_instance, s) # XXX: the annotation is wrong, but it works
+        hop2.r_s_popfirstarg()
+        s_instance = hop.rtyper.annotator.bookkeeper.immutablevalue(INSTANCE)
+        hop2.v_s_insertfirstarg(v_instance, s_instance)
         return rtype_new(hop2)
     else:
         INSTANCE = hop.s_result.rtyper_makerepr(hop.rtyper).lowleveltype



More information about the Pypy-commit mailing list