Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test for lpython emulation mode #2226

Merged
merged 3 commits into from
Jul 30, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Ensure cf.restype is always available
The previous commit fails and this commit fixes it.

Fixes #2222.
  • Loading branch information
certik committed Jul 30, 2023
commit 9979cceba122867e2dcb612d35a4df2956d136e5
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