From 70e38fa201f9939706b3404a994fa386e691a576 Mon Sep 17 00:00:00 2001 From: schoetbi Date: Tue, 3 Jul 2018 15:50:23 +0200 Subject: [PATCH] Interpret integer and and or as bitwise operations --- exprtk.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exprtk.hpp b/exprtk.hpp index e0eb192..6b092a4 100644 --- a/exprtk.hpp +++ b/exprtk.hpp @@ -1114,7 +1114,7 @@ namespace exprtk template inline T and_impl(const T v0, const T v1, int_type_tag) { - return v0 && v1; + return v0 & v1; } template @@ -1138,7 +1138,7 @@ namespace exprtk template inline T or_impl(const T v0, const T v1, int_type_tag) { - return (v0 || v1); + return (v0 | v1); } template