[pypy-commit] pypy numpy-back-to-applevel: fix translation?
fijal
noreply at buildbot.pypy.org
Thu Jan 26 22:29:52 CET 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-back-to-applevel
Changeset: r51820:ecbc34a30eca
Date: 2012-01-26 23:02 +0200
http://bitbucket.org/pypy/pypy/changeset/ecbc34a30eca/
Log: fix translation?
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
@@ -272,7 +272,7 @@
else:
res_dtype = calc_dtype
if isinstance(w_obj, Scalar):
- return self.func(calc_dtype, w_obj.value.convert_to(calc_dtype))
+ return space.wrap(self.func(calc_dtype, w_obj.value.convert_to(calc_dtype)))
w_res = Call1(self.func, self.name, w_obj.shape, calc_dtype, res_dtype,
w_obj)
More information about the pypy-commit
mailing list