Skip to content

Commit

Permalink
Fix indexing of self.args when passing Python object as varargs param…
Browse files Browse the repository at this point in the history
…eter (#5805)
  • Loading branch information
Baekalfen committed Nov 8, 2023
1 parent c7d0298 commit c016ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cython/Compiler/ExprNodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6275,7 +6275,7 @@ def analyse_c_function_call(self, env):
else:
arg_ctype = arg.type.default_coerced_ctype()
if arg_ctype is None:
error(self.args[i].pos,
error(self.args[i-1].pos,
"Python object cannot be passed as a varargs parameter")
else:
args[i] = arg = arg.coerce_to(arg_ctype, env)
Expand Down

0 comments on commit c016ea6

Please sign in to comment.