[pypy-svn] r65093 - pypy/branch/pyjitpl5/pypy/jit/backend/llgraph

antocuni at codespeak.net antocuni at codespeak.net
Wed May 6 14:37:37 CEST 2009


Author: antocuni
Date: Wed May  6 14:37:36 2009
New Revision: 65093

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/llimpl.py
Log:
don't forget to cast also the newvalue


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/llimpl.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/llimpl.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/llimpl.py	Wed May  6 14:37:36 2009
@@ -734,8 +734,9 @@
 
     op_getarrayitem_gc_pure = op_getarrayitem_gc
 
-    def op_setarrayitem_gc(self, typedescr, obj, index, newvalue):
+    def op_setarrayitem_gc(self, typedescr, obj, index, objnewvalue):
         array = ootype.cast_from_object(typedescr.ARRAY, obj)
+        newvalue = ootype.cast_from_object(typedescr.TYPE, objnewvalue)
         array.ll_setitem_fast(index, newvalue)
 
     def op_arraylen_gc(self, typedescr, obj):



More information about the Pypy-commit mailing list