mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 21:28:21 +00:00
Fixed v128 bytes
This commit is contained in:
2
lib/api/src/externals/global.rs
vendored
2
lib/api/src/externals/global.rs
vendored
@@ -47,7 +47,7 @@ impl Global {
|
|||||||
Val::I64(x) => *global.get_mut().as_i64_mut() = x,
|
Val::I64(x) => *global.get_mut().as_i64_mut() = x,
|
||||||
Val::F32(x) => *global.get_mut().as_f32_mut() = x,
|
Val::F32(x) => *global.get_mut().as_f32_mut() = x,
|
||||||
Val::F64(x) => *global.get_mut().as_f64_mut() = x,
|
Val::F64(x) => *global.get_mut().as_f64_mut() = x,
|
||||||
Val::V128(x) => *global.get_mut().as_u128_bits_mut() = x.bytes(),
|
Val::V128(x) => *global.get_mut().as_u128_bits_mut() = x.to_ne_bytes(),
|
||||||
_ => return Err(RuntimeError::new(format!("create_global for {:?}", val))),
|
_ => return Err(RuntimeError::new(format!("create_global for {:?}", val))),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user