diff --git a/Vectorisation/VecX/vec_bool_d.h b/Vectorisation/VecX/vec_bool_d.h index b0d4166..e41acc2 100644 --- a/Vectorisation/VecX/vec_bool_d.h +++ b/Vectorisation/VecX/vec_bool_d.h @@ -107,13 +107,13 @@ static inline bool horizontal_and(VecBoolD const & a) static inline VecBoolD operator &&(VecBoolD const& a, const VecBoolD& b) { - return VecBoolD( a[0] & b[0],a[1] & b[1]); + return VecBoolD( static_cast(a[0]) & static_cast(b[0]), static_cast(a[1]) & static_cast(b[1])); } static inline VecBoolD operator ||(VecBoolD const& a, const VecBoolD& b) { - return VecBoolD(a[0] | b[0], a[1] | b[1]); + return VecBoolD(static_cast(a[0]) | static_cast(b[0]), static_cast(a[1]) | static_cast(b[1]) ); }