You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to call an exported WASM function from Ruby with a negative integer parameter an exception is raised.
The function call is:
@exports.i32_to_s.call(-1)
the parameter signature of the WASM func is i32
and the exception raised is
TypeError: out of range integral type conversion attempted
I have no trouble passing a positive value.
Is this the expected behavior ? How can I pass a negative value ? Do i Have to pass the 2-complement positive value (meaning 65535 here) ?
Thank you for your help.
The text was updated successfully, but these errors were encountered:
When trying to call an exported WASM function from Ruby with a negative integer parameter an exception is raised.
The function call is:
@exports.i32_to_s.call(-1)
the parameter signature of the WASM func is i32
and the exception raised is
TypeError: out of range integral type conversion attempted
I have no trouble passing a positive value.
Is this the expected behavior ? How can I pass a negative value ? Do i Have to pass the 2-complement positive value (meaning 65535 here) ?
Thank you for your help.
The text was updated successfully, but these errors were encountered: