Author: Alex Gaynor <[email protected]>
Branch: numpy-back-to-applevel
Changeset: r51815:6d4db9f0618a
Date: 2012-01-26 15:31 -0500
http://bitbucket.org/pypy/pypy/changeset/6d4db9f0618a/

Log:    make this method RPython

diff --git a/pypy/module/micronumpy/interp_boxes.py 
b/pypy/module/micronumpy/interp_boxes.py
--- a/pypy/module/micronumpy/interp_boxes.py
+++ b/pypy/module/micronumpy/interp_boxes.py
@@ -29,6 +29,7 @@
     def convert_to(self, dtype):
         return dtype.box(self.value)
 
+
 class W_GenericBox(Wrappable):
     _attrs_ = ()
 
@@ -106,7 +107,7 @@
 
 class W_IntegerBox(W_NumberBox):
     def int_w(self, space):
-        return rffi.cast(lltype.Signed, self.value)
+        return space.int_w(self.descr_int(space))
 
 class W_SignedIntegerBox(W_IntegerBox):
     pass
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to