From a6a87e2607c5789e9cccd6e724abcd63cb2fd4b5 Mon Sep 17 00:00:00 2001 From: LAK132 Date: Sun, 12 Nov 2023 21:24:16 +1030 Subject: [PATCH] fix clang complaining about bitwise or-ing booleans --- src/base_window.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/base_window.hpp b/src/base_window.hpp index 2e787e9..cf4c1d2 100644 --- a/src/base_window.hpp +++ b/src/base_window.hpp @@ -190,10 +190,11 @@ along with Anaconda. If not, see .)"); return result; }; - return mode_check(se_main_mode_t::normal, "Normal Mode") | - mode_check(se_main_mode_t::byte_pairs, "Byte Pairs") | - mode_check(se_main_mode_t::binary_analysis, "Binary Analysis") | - mode_check(se_main_mode_t::testing, "Testing"); + return bool( + int(mode_check(se_main_mode_t::normal, "Normal Mode")) | + mode_check(se_main_mode_t::byte_pairs, "Byte Pairs") | + mode_check(se_main_mode_t::binary_analysis, "Binary Analysis") | + mode_check(se_main_mode_t::testing, "Testing")); } #ifdef LAK_COMPILER_MSVC # pragma warning(pop)