Fixed tests

This commit is contained in:
Syrus
2020-07-24 15:37:59 -07:00
parent 79034f069d
commit a749f899f0

View File

@@ -47,7 +47,7 @@ impl Global {
Val::I64(x) => *global.get_mut().as_i64_mut() = x,
Val::F32(x) => *global.get_mut().as_f32_mut() = x,
Val::F64(x) => *global.get_mut().as_f64_mut() = x,
Val::V128(x) => *global.get_mut().as_u128_bits_mut() = x,
Val::V128(x) => *global.get_mut().as_u128_bits_mut() = x.bytes(),
_ => return Err(RuntimeError::new(format!("create_global for {:?}", val))),
}
};