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

correctly handle I64 (and other) values returned from imported functions #242

Merged
merged 1 commit into from
Mar 18, 2021

Conversation

noot
Copy link
Contributor

@noot noot commented Mar 16, 2021

I was attempting to upgrade to the new wasmer version when I found that any imported functions that returned I64 caused "panic: Cannot convert value to int32". it seems it was due to always trying to convert the return value to I32. This PR resolves that issue.

@nlewycky nlewycky requested a review from Hywan March 16, 2021 21:27
Copy link
Contributor

@Hywan Hywan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, that's a bug. Thanks for the fix and the test!

bors r+

bors bot added a commit that referenced this pull request Mar 18, 2021
242: correctly handle I64 (and other) values returned from imported functions r=Hywan a=noot

I was attempting to upgrade to the new wasmer version when I found that any imported functions that returned I64 caused "panic: Cannot convert value to `int32`". it seems it was due to always trying to convert the return value to I32. This PR resolves that issue.

Co-authored-by: noot <elizabethjbinks@gmail.com>
@Hywan Hywan self-assigned this Mar 18, 2021
@Hywan Hywan added the 🐞 bug Something isn't working label Mar 18, 2021
@Hywan Hywan merged commit 9b0afc7 into wasmerio:master Mar 18, 2021
@Hywan
Copy link
Contributor

Hywan commented Mar 18, 2021

Do you need a new release now?

@noot
Copy link
Contributor Author

noot commented Mar 18, 2021

@Hywan I can point to the commit for now, so not an issue, up to you :)

@Hywan
Copy link
Contributor

Hywan commented Mar 22, 2021

I'll make a new release probably today :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants