[pypy-commit] pypy numpy-exp: Small cleanup.

alex_gaynor noreply at buildbot.pypy.org
Mon May 16 23:28:26 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: numpy-exp
Changeset: r44224:d305f5319141
Date: 2011-05-16 16:37 -0500
http://bitbucket.org/pypy/pypy/changeset/d305f5319141/

Log:	Small cleanup.

diff --git a/pypy/module/micronumpy/interp_ufuncs.py b/pypy/module/micronumpy/interp_ufuncs.py
--- a/pypy/module/micronumpy/interp_ufuncs.py
+++ b/pypy/module/micronumpy/interp_ufuncs.py
@@ -16,8 +16,8 @@
     signature = Signature()
     @unwrap_spec(larray=BaseArray, rarray=BaseArray)
     def impl(space, larray, rarray):
-        new_sig = larray.signature.transition(signature)
-        w_res = Call2(func, larray, rarray, rarray.signature.transition(new_sig))
+        new_sig = larray.signature.transition(signature).transition(rarray.signature)
+        w_res = Call2(func, larray, rarray, new_sig)
         larray.invalidates.append(w_res)
         rarray.invalidates.append(w_res)
         return w_res


More information about the pypy-commit mailing list