Backport ed305c4b98cda5c6d479310e4ba350a17d901e75 to emacs-30
authorPo Lu <luangruo@yahoo.com>
Sat, 17 Aug 2024 08:19:06 +0000 (16:19 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 17 Aug 2024 13:53:30 +0000 (21:53 +0800)
* src/xterm.c (x_construct_mouse_click): `||' → `|'.
Typo found by clang 18.1.6 -Wbool-operation.  Do not
merge to master.

src/xterm.c

index 215a3ed3bbe09395950f300c9c11d0364b37231e..fd3e58f85f6f8e79bdd51ce8d28d1b803f275e58 100644 (file)
@@ -14699,7 +14699,7 @@ x_construct_mouse_click (struct input_event *result,
           result->kind = (event->type != ButtonRelease ? NO_EVENT
                          : wheel & 2 ? HORIZ_WHEEL_EVENT : WHEEL_EVENT);
           result->code = 0;         /* Not used.  */
-          result->modifiers &= ~(up_modifier || down_modifier);
+          result->modifiers &= ~(up_modifier | down_modifier);
           result->modifiers |= wheel & 1 ? up_modifier : down_modifier;
         }
     }