From df5c556212958e31fcf0c35de60e92d51fb0795c Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Mon, 30 Jan 2023 09:47:06 +0100 Subject: Fix Clang warning about bitwise ops on boolean values --- zencore/include/zencore/compactbinary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zencore/include/zencore/compactbinary.h b/zencore/include/zencore/compactbinary.h index eba4a1694..c0cd07172 100644 --- a/zencore/include/zencore/compactbinary.h +++ b/zencore/include/zencore/compactbinary.h @@ -367,7 +367,7 @@ public: static constexpr inline bool MayContainAttachments(CbFieldType Type) { // The use of !! will suppress V792 from static analysis. Using //-V792 did not work. - return !!IsObject(Type) | !!IsArray(Type) | !!IsAttachment(Type); + return int(IsObject(Type) == true) | int(IsArray(Type) == true) | int(IsAttachment(Type) == true); } }; -- cgit v1.2.3