Skip to content

Commit

Permalink
Fix wasm implementation of from_mask
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Dec 6, 2023
1 parent c6f838c commit 3866662
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/xsimd/arch/xsimd_wasm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,11 +591,11 @@ namespace xsimd
}
else XSIMD_IF_CONSTEXPR(sizeof(T) == 4)
{
return batch_bool_cast<T>(from_mask(batch_bool<float, A> {}, mask, wasm {}));
return batch_bool_cast(from_mask(batch_bool<float, A> {}, mask, wasm {}), batch_bool<T, A>{}, wasm{});
}
else XSIMD_IF_CONSTEXPR(sizeof(T) == 8)
{
return batch_bool_cast<T>(from_mask(batch_bool<double, A> {}, mask, wasm {}));
return batch_bool_cast(from_mask(batch_bool<double, A> {}, mask, wasm {}), batch_bool<T, A>{}, wasm{});
}
}

Expand Down Expand Up @@ -1625,4 +1625,4 @@ namespace xsimd
}
}

#endif
#endif

0 comments on commit 3866662

Please sign in to comment.