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
But after searching around a bit, I don't see a situation in which it would be negative. I see that Errno is repr(u16). Can this actually be negative anywhere?
I could be missing it somewhere since a from impl exists:
implFrom<ExitCode>fori32{fnfrom(val:ExitCode) -> Self{match val {ExitCode::Errno(err) => err.to_native(),ExitCode::Other(code) => code,}}}
Additional details
N/A
The text was updated successfully, but these errors were encountered:
Summary
A clear and concise summary of your question.
I see that https://docs.rs/wasmer-wasix-types/0.27.0/wasmer_wasix_types/wasi/enum.ExitCode.html has an
i32
and as such when you ask for the raw exit code it gives ani32
.But after searching around a bit, I don't see a situation in which it would be negative. I see that
Errno
isrepr(u16)
. Can this actually be negative anywhere?I could be missing it somewhere since a from impl exists:
Additional details
N/A
The text was updated successfully, but these errors were encountered: