Skip to content

Commit

Permalink
Fix C99-ism and replace it with a C89 declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Aug 25, 2023
1 parent 6884db1 commit f34e0bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Cython/Compiler/Nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4304,9 +4304,12 @@ def generate_argument_values_cleanup_code(self, code):
return
# The 'values' array may not be borrowed depending on the compilation options.
# This cleans it up in the case it isn't borrowed
code.putln("for (Py_ssize_t i=0; i<(Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++i) {")
code.putln("{")
code.putln("Py_ssize_t i;")
code.putln("for (i=0; i < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++i) {")
code.putln("__Pyx_Arg_XDECREF_%s(values[i]);" % self.signature.fastvar)
code.putln("}")
code.putln("}")

def generate_keyword_unpacking_code(self, min_positional_args, max_positional_args,
has_fixed_positional_count,
Expand Down

0 comments on commit f34e0bb

Please sign in to comment.