fix undefined name
authorStefan Behnel <scoder@users.berlios.de>
Thu, 28 Jan 2010 21:18:23 +0000 (22:18 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 28 Jan 2010 21:18:23 +0000 (22:18 +0100)
Cython/Compiler/Nodes.py

index 071c3ae04b9fb3b1d5db5b8c60321228c99a9361..5cd40d7617935dea9c2dc9541b6c37ee409704e3 100644 (file)
@@ -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: