[pypy-commit] pypy virtual-arguments: and yest another jit crasher
fijal
noreply at buildbot.pypy.org
Thu Jul 19 17:22:13 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: virtual-arguments
Changeset: r56224:efded611f033
Date: 2012-07-19 17:21 +0200
http://bitbucket.org/pypy/pypy/changeset/efded611f033/
Log: and yest another jit crasher
diff --git a/pypy/module/itertools/interp_itertools.py b/pypy/module/itertools/interp_itertools.py
--- a/pypy/module/itertools/interp_itertools.py
+++ b/pypy/module/itertools/interp_itertools.py
@@ -1074,9 +1074,12 @@
class W_Product(Wrappable):
def __init__(self, space, args_w, w_repeat):
+ repeat = space.int_w(w_repeat)
+ if repeat < 0:
+ repeat = 0
self.gears = [
space.fixedview(arg_w) for arg_w in args_w
- ] * space.int_w(w_repeat)
+ ] * repeat
self.num_gears = len(self.gears)
# initialization of indicies to loop over
self.indicies = [
More information about the pypy-commit
mailing list