From 9dfe33b246e6cec8890cf089e102bc22861d2b48 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 28 Jan 2010 22:18:23 +0100 Subject: [PATCH] fix undefined name --- Cython/Compiler/Nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 071c3ae0..5cd40d76 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1649,7 +1649,7 @@ class DefNode(FuncDefNode): cfunc_type = cfunc.type if len(self.args) != len(cfunc_type.args) or cfunc_type.has_varargs: error(self.pos, "wrong number of arguments") - error(declarator.pos, "previous declaration here") + error(cfunc.pos, "previous declaration here") for formal_arg, type_arg in zip(self.args, cfunc_type.args): name_declarator, type = formal_arg.analyse(cfunc.scope, nonempty=1) if type is None or type is PyrexTypes.py_object_type or formal_arg.is_self: -- 2.26.2