diff options
| author | Martin Ridgers <[email protected]> | 2023-01-30 09:47:06 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2023-02-02 14:55:14 +0100 |
| commit | df5c556212958e31fcf0c35de60e92d51fb0795c (patch) | |
| tree | dca012025fa20c295b07d59f6e48529dab634f85 /zencore/include | |
| parent | Updated README.md (diff) | |
| download | zen-df5c556212958e31fcf0c35de60e92d51fb0795c.tar.xz zen-df5c556212958e31fcf0c35de60e92d51fb0795c.zip | |
Fix Clang warning about bitwise ops on boolean values
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/compactbinary.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); } }; |