Skip to content

Commit

Permalink
fix undefined name
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Behnel committed Jan 28, 2010
1 parent 9de4dba commit 9dfe33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cython/Compiler/Nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ def as_cfunction(self, cfunc=None, scope=None):
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:
Expand Down

0 comments on commit 9dfe33b

Please sign in to comment.