[pypy-commit] pypy numpy-single-jitdriver: oops

fijal noreply at buildbot.pypy.org
Thu Feb 2 18:22:27 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-single-jitdriver
Changeset: r52038:67dce8d83391
Date: 2012-02-02 19:22 +0200
http://bitbucket.org/pypy/pypy/changeset/67dce8d83391/

Log:	oops

diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -888,7 +888,8 @@
         self.identity = identity
 
     def compute_first_step(self, sig, frame):
-        frame.identity = self.identity.convert_to(self.calc_dtype)
+        if self.identity is not None:
+            frame.identity = self.identity.convert_to(self.calc_dtype)
 
     def create_sig(self):
         return signature.AxisReduceSignature(self.ufunc, self.name,


More information about the pypy-commit mailing list