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(ext/ffi): i64 arg to C mapping was wrong #15162

Merged
merged 4 commits into from
Jul 12, 2022

Conversation

aapoalas
Copy link
Collaborator

Small error slipped through in the 64 bit arguments mapping to C types for the Fast API trampoline functions. i64 and isize parameters were mapped to uint64_t.

This PR fixes the mistake, then fixes the test that was written to expect the isize to map into uint64_t to instead expect int64_t. Finally, I added some line breaks to the codegen'ed C output to make them more readable, hoping to avoid any future lapses like this. Now it's a bit more clear that the types wouldn't have matched originally.

@littledivy littledivy merged commit 007e1b4 into denoland:main Jul 12, 2022
@aapoalas aapoalas deleted the fix-ext-ffi-i64-pointer-to-arg branch July 23, 2022 17:18
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