75406dd8ff
Casts have arithmetic semantics, and under some build configurations Rust will panic when encountering an arithmetic overflow. Use a transmute instead since it's what we mean. The previous code worked, but still I added a test for good measure. |
||
---|---|---|
.. | ||
host.rs | ||
mod.rs | ||
wasm.rs |