Skip to content

Commit

Permalink
compile warning fix for bitwise & | on doubles for vec bool d
Browse files Browse the repository at this point in the history
  • Loading branch information
andyD123 committed Aug 29, 2023
1 parent ae37793 commit 827effd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vectorisation/VecX/vec_bool_d.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<long>(a[0]) & static_cast<long>(b[0]), static_cast<long>(a[1]) & static_cast<long>(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<long>(a[0]) | static_cast<long>(b[0]), static_cast<long>(a[1]) | static_cast<long>(b[1]) );
}


Expand Down

0 comments on commit 827effd

Please sign in to comment.