Skip to content

Commit

Permalink
Ensure cf.restype is always available
Browse files Browse the repository at this point in the history
The previous commit fails and this commit fixes it.

Fixes lcompilers#2222.
  • Loading branch information
certik committed Jul 30, 2023
1 parent 81e9c0d commit 9979cce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/lpython/lpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ def get_crtlib_path():
arg_ctype = convert_type_to_ctype(arg_type)
argtypes.append(arg_ctype)
self.cf.argtypes = argtypes
self.cf.restype = None
if "return" in self.annotations:
res_type = self.annotations["return"]
if res_type is not None:
Expand Down

0 comments on commit 9979cce

Please sign in to comment.