From ec84cb7dbe78e2d809a9d02c69f2caf55685995d Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 12 Dec 2007 12:02:49 -0800 Subject: [PATCH] Typo fix suggested by Ondrej Certik --- Cython/Compiler/Nodes.py | 2 +- Cython/Compiler/Options.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2