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

Fix type conversion for negative integers returned from native functions #22

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

cshowe
Copy link
Contributor

@cshowe cshowe commented Aug 22, 2024

Currently integers are typed as u64 which means that negative integers cause rjsonnet to fail with:
RuntimeError: runtime error: error invoking native extension return_types: TypeError: Unrecognized type return from Python Jsonnet native extension.

Fix by using i64 instead and add a couple tests.

Currently integers are typed as u64 which means that negative integers cause rjsonnet to fail with:
"RuntimeError: runtime error: error invoking native extension return_types: TypeError: Unrecognized type return from Python Jsonnet native extension."
Fix by using i64 instead and add a couple tests.
@messense messense merged commit c96b5f6 into messense:main Aug 23, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants