From: Stefan Behnel Date: Thu, 28 Jan 2010 21:18:23 +0000 (+0100) Subject: fix undefined name X-Git-Tag: 0.12.1~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9dfe33b246e6cec8890cf089e102bc22861d2b48;p=cython.git fix undefined name --- 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: