Skip to content

Commit d91cd1e

Browse files
Merge branch 'release/v0.4.5'
2 parents a3049e6 + 22998e4 commit d91cd1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xobjects/capi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def gen_method_switch(cls, path, conf, method):
471471
#endif"""
472472
)
473473
lst.append(" }")
474-
lst.append(" return 0;")
474+
lst.append(f" return{'' if method.ret is None else ' 0'};")
475475
lst.append("}")
476476
return "\n".join(lst), kernel
477477

0 commit comments

Comments
 (0)