mirror of
https://github.com/ArashPartow/exprtk.git
synced 2025-08-07 03:37:30 +00:00
Interpret integer and and or as bitwise operations
This commit is contained in:
@ -1114,7 +1114,7 @@ namespace exprtk
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
inline T and_impl(const T v0, const T v1, int_type_tag)
|
inline T and_impl(const T v0, const T v1, int_type_tag)
|
||||||
{
|
{
|
||||||
return v0 && v1;
|
return v0 & v1;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
@ -1138,7 +1138,7 @@ namespace exprtk
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
inline T or_impl(const T v0, const T v1, int_type_tag)
|
inline T or_impl(const T v0, const T v1, int_type_tag)
|
||||||
{
|
{
|
||||||
return (v0 || v1);
|
return (v0 | v1);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
Reference in New Issue
Block a user