Commit 2afa7549 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Fix checks written about optional arguments when there is no one

parent e6f36298
......@@ -1243,6 +1243,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