[pypy-commit] pypy default: Fix
arigo
noreply at buildbot.pypy.org
Sat Jul 7 10:37:38 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r55955:ffc2d9ba05bb
Date: 2012-07-07 10:37 +0200
http://bitbucket.org/pypy/pypy/changeset/ffc2d9ba05bb/
Log: Fix
diff --git a/pypy/module/array/interp_array.py b/pypy/module/array/interp_array.py
--- a/pypy/module/array/interp_array.py
+++ b/pypy/module/array/interp_array.py
@@ -518,11 +518,11 @@
start = 0
# <a performance hack>
if oldlen == 1:
- if self.unwrap == 'str_w' or self.unwrap == 'unicode_w':
+ if mytype.unwrap == 'str_w' or mytype.unwrap == 'unicode_w':
zero = not ord(self.buffer[0])
- elif self.unwrap == 'int_w' or self.unwrap == 'bigint_w':
+ elif mytype.unwrap == 'int_w' or mytype.unwrap == 'bigint_w':
zero = not widen(self.buffer[0])
- #elif self.unwrap == 'float_w':
+ #elif mytype.unwrap == 'float_w':
# value = ...float(self.buffer[0]) xxx handle the case of -0.0
else:
zero = False
More information about the pypy-commit
mailing list