[pypy-commit] pypy ufuncapi: translation fixes

mattip noreply at buildbot.pypy.org
Mon Aug 18 00:10:08 CEST 2014


Author: mattip <matti.picus at gmail.com>
Branch: ufuncapi
Changeset: r72857:28e42d741c8a
Date: 2014-08-18 01:09 +0300
http://bitbucket.org/pypy/pypy/changeset/28e42d741c8a/

Log:	translation fixes

diff --git a/pypy/module/cpyext/ndarrayobject.py b/pypy/module/cpyext/ndarrayobject.py
--- a/pypy/module/cpyext/ndarrayobject.py
+++ b/pypy/module/cpyext/ndarrayobject.py
@@ -312,6 +312,9 @@
     w_signature = rffi.charp2str(signature)
     w_doc = rffi.charp2str(doc)
     w_name = rffi.charp2str(name)
-    ufunc_generic = ufuncs.frompyfunc(space, w_funcs, nin, nout, w_dtypes,
-                 w_signature, identity, w_name, w_doc)
+    w_nin = int(nin)
+    w_nout = int(nout)
+    w_identity = space.wrap(identity)
+    ufunc_generic = ufuncs.frompyfunc(space, w_funcs, w_nin, w_nout, w_dtypes,
+                 w_signature, w_identity, w_name, w_doc)
     return ufunc_generic             


More information about the pypy-commit mailing list