From: Robert Bradshaw <robertwb@math.washington.edu>
Date: Wed, 12 Dec 2007 20:02:49 +0000 (-0800)
Subject: Typo fix suggested by Ondrej Certik
X-Git-Tag: 0.9.6.14~29^2~86
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ec84cb7dbe78e2d809a9d02c69f2caf55685995d;p=cython.git

Typo fix suggested by Ondrej Certik
---

diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py
index edc6d991..1689e564 100644
--- a/Cython/Compiler/Nodes.py
+++ b/Cython/Compiler/Nodes.py
@@ -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
diff --git a/Cython/Compiler/Options.py b/Cython/Compiler/Options.py
index eaad9617..9a2120e9 100644
--- a/Cython/Compiler/Options.py
+++ b/Cython/Compiler/Options.py
@@ -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