From 827effd10a1d7d5f0ab4e12e57e16cec17471def Mon Sep 17 00:00:00 2001 From: andyD123 Date: Tue, 29 Aug 2023 01:30:02 +0100 Subject: [PATCH] compile warning fix for bitwise & | on doubles for vec bool d --- Vectorisation/VecX/vec_bool_d.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]) ); }