Skip to content

Commit

Permalink
Replace an instance std with core in wasm.rs, such that `#[no_s…
Browse files Browse the repository at this point in the history
…td]` and the `wasm32` target can be used concurrently.
  • Loading branch information
texodus authored and mcountryman committed Sep 21, 2024
1 parent cc3155d commit 140cde0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imp/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ mod imp {

#[inline(always)]
fn reduce_add(v: v128) -> u32 {
let arr: [u32; 4] = unsafe { std::mem::transmute(v) };
let arr: [u32; 4] = unsafe { core::mem::transmute(v) };
let mut sum = 0u32;
for val in arr {
sum = sum.wrapping_add(val);
Expand Down

0 comments on commit 140cde0

Please sign in to comment.