Author: Maciej Fijalkowski <[email protected]>
Branch: optresult-unroll
Changeset: r79528:d96acd96f2fc
Date: 2015-09-08 11:10 +0200
http://bitbucket.org/pypy/pypy/changeset/d96acd96f2fc/

Log:    fix untranslated tests

diff --git a/rpython/rlib/rgc.py b/rpython/rlib/rgc.py
--- a/rpython/rlib/rgc.py
+++ b/rpython/rlib/rgc.py
@@ -787,4 +787,4 @@
 
     def specialize_call(self, hop):
         hop.exception_cannot_occur()
-        return hop.genop('gc_gettypeid', hop.args_v, resulttype=hop.r_result)
+        return hop.genop('gc_gettypeid', hop.args_v, resulttype=lltype.Signed)
diff --git a/rpython/rtyper/llinterp.py b/rpython/rtyper/llinterp.py
--- a/rpython/rtyper/llinterp.py
+++ b/rpython/rtyper/llinterp.py
@@ -710,7 +710,7 @@
         self.heap.add_memory_pressure(size)
 
     def op_gc_gettypeid(self, obj):
-        return lltype.cast_primitive(lltype.Signed, self.heap.gettypeid(obj))
+        return lloperation.llop.combine_ushort(lltype.Signed, 
self.heap.gettypeid(obj), 0)
 
     def op_shrink_array(self, obj, smallersize):
         return self.heap.shrink_array(obj, smallersize)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to