Interpret integer and and or as bitwise operations

This commit is contained in:
schoetbi 2018-07-03 15:50:23 +02:00
parent b4e4a1f565
commit 70e38fa201
1 changed files with 2 additions and 2 deletions

View File

@ -1114,7 +1114,7 @@ namespace exprtk
template <typename T>
inline T and_impl(const T v0, const T v1, int_type_tag)
{
return v0 && v1;
return v0 & v1;
}
template <typename T>
@ -1138,7 +1138,7 @@ namespace exprtk
template <typename T>
inline T or_impl(const T v0, const T v1, int_type_tag)
{
return (v0 || v1);
return (v0 | v1);
}
template <typename T>