Permalink
Browse files

Fix

  • Loading branch information...
1 parent 8dca72a commit ed01475956cf467a6988b1945a783443ab05d68e Armin Rigo committed Jul 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 pypy/module/array/interp_array.py
@@ -518,11 +518,11 @@ def _mul_helper(space, self, w_repeat, is_inplace):
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

0 comments on commit ed01475

Please sign in to comment.