Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
freddieknets committed Oct 8, 2024
1 parent a3049e6 commit 22998e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xobjects/capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def gen_method_switch(cls, path, conf, method):
#endif"""
)
lst.append(" }")
lst.append(" return 0;")
lst.append(f" return{'' if method.ret is None else ' 0'};")
lst.append("}")
return "\n".join(lst), kernel

Expand Down

0 comments on commit 22998e4

Please sign in to comment.