[pypy-commit] pypy numpy-back-to-applevel: make this method RPython

alex_gaynor noreply at buildbot.pypy.org
Thu Jan 26 21:32:16 CET 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
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


More information about the pypy-commit mailing list