[pypy-commit] pypy gc-hooks: space.wrap is no longer rpython

antocuni pypy.commits at gmail.com
Sat Mar 31 09:08:59 EDT 2018


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: gc-hooks
Changeset: r94199:e44493a28aeb
Date: 2018-03-31 15:08 +0200
http://bitbucket.org/pypy/pypy/changeset/e44493a28aeb/

Log:	space.wrap is no longer rpython

diff --git a/pypy/module/gc/hook.py b/pypy/module/gc/hook.py
--- a/pypy/module/gc/hook.py
+++ b/pypy/module/gc/hook.py
@@ -48,8 +48,8 @@
 
     def perform(self, ec, frame):
         self.space.call_function(self.w_callable,
-                                 self.space.wrap(self.total_memory_used),
-                                 self.space.wrap(self.pinned_objects))
+                                 self.space.newint(self.total_memory_used),
+                                 self.space.newint(self.pinned_objects))
 
 
 


More information about the pypy-commit mailing list