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
......
......@@ -32,4 +32,4 @@ annotate = 0
# i to overflow. Specifically, if this option is set, an error will be
# raised before the loop is entered, wheras without this option the loop
# will execute util a overflowing value is encountered.
convert_range = 0
\ No newline at end of file
convert_range = 0
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