Skip to content

Commit

Permalink
fix clang complaining about bitwise or-ing booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
LAK132 committed Nov 12, 2023
1 parent 0751497 commit a6a87e2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/base_window.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,11 @@ along with Anaconda. If not, see <http://www.gnu.org/licenses/>.)");
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)
Expand Down

0 comments on commit a6a87e2

Please sign in to comment.