Commit c976a7b0 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Fix checks written about optional arguments when there is no one

parent 94f4d74d
......@@ -1244,6 +1244,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if narg.type.is_cyp_class:
code.putln("%s(this->%s);" % (op_lbda(narg), narg.cname))
if opt_arg_count:
code.putln("if (this->%s != NULL) {" % opt_arg_name)
num_if = 0
for opt_idx, optarg in enumerate(func_type.args[narg_count:]):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment