Commit ec84cb7d authored by Robert Bradshaw's avatar Robert Bradshaw

Typo fix suggested by Ondrej Certik

parent 77d9b2e3
......@@ -2417,7 +2417,7 @@ class ForInStatNode(StatNode):
# The direction must be determined at compile time to set relations.
# Otherwise, return False.
if len(args) < 3:
self.step = ExprNodes.IntNode(pos = sequence.pos, value='1')
self.step = ExprNodes.IntNode(pos = args[0].pos, value='1')
self.relation1 = '<='
self.relation2 = '<'
return True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment