From: Scott Kostyshak Date: Fri, 29 Apr 2022 01:06:37 +0000 (-0400) Subject: Fix Clang 14 warning -Wbitwise-instead-of-logical X-Git-Tag: 2.4-beta2~687 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a83159f0;p=lyx.git Fix Clang 14 warning -Wbitwise-instead-of-logical Use the boolean operator '||' with bools instead of the bitwise operator '|'. --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 32c890c798..30944ccf9c 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -2531,7 +2531,7 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0) // Notify left insets if (cur != old) { - bool badcursor = old.fixIfBroken() | cur.fixIfBroken(); + bool badcursor = old.fixIfBroken() || cur.fixIfBroken(); badcursor |= notifyCursorLeavesOrEnters(old, cur); if (badcursor) cursor().fixIfBroken();