wasm3 / wasm3-rs

Rust wrapper for Wasm3, the fastest WebAssembly interpreter
MIT License
160 stars 44 forks source link

use-32bit-slots feature is broken #12

Closed Veykril closed 4 years ago

Veykril commented 4 years ago
#[no_mangle]
pub extern "C" fn add_u32(foo: u32, bar: u32) -> u32 {
    foo + bar
}

This function returns the correct result when using 64bit slots, but an incorrect result when using 32bit slots.

Veykril commented 4 years ago

@ericflo, this might be a cause for your problem as well since this feature is enabled by default. Can you check whether your problem persists if you disable default features?

Veykril commented 4 years ago

Should be fixed in #56858c8.