[pypy-commit] pypy numpy-back-to-applevel: cheat
fijal
noreply at buildbot.pypy.org
Thu Jan 26 22:29:54 CET 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-back-to-applevel
Changeset: r51822:aa22b6b02b7e
Date: 2012-01-26 23:29 +0200
http://bitbucket.org/pypy/pypy/changeset/aa22b6b02b7e/
Log: cheat
diff --git a/pypy/rpython/lltypesystem/rdict.py b/pypy/rpython/lltypesystem/rdict.py
--- a/pypy/rpython/lltypesystem/rdict.py
+++ b/pypy/rpython/lltypesystem/rdict.py
@@ -321,7 +321,8 @@
r_tuple = hop.r_result
cTUPLE = hop.inputconst(lltype.Void, r_tuple.lowleveltype)
hop.exception_is_here()
- return hop.gendirectcall(ll_popitem, cTUPLE, v_dict)
+ v_res = hop.gendirectcall(ll_popitem, cTUPLE, v_dict)
+ return self.recast_value(hop.llops, v_res)
def rtype_method_pop(self, hop):
if hop.nb_args == 2:
@@ -331,7 +332,8 @@
v_args = hop.inputargs(self, self.key_repr, self.value_repr)
target = ll_pop_default
hop.exception_is_here()
- return hop.gendirectcall(target, *v_args)
+ v_res = hop.gendirectcall(target, *v_args)
+ return self.recast_value(hop.llops, v_res)
class __extend__(pairtype(DictRepr, rmodel.Repr)):
More information about the pypy-commit
mailing list