]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix x_construct_mouse_click || vs | typo
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 17 Aug 2024 03:49:18 +0000 (20:49 -0700)
committerEshel Yaron <me@eshelyaron.com>
Tue, 20 Aug 2024 14:09:08 +0000 (16:09 +0200)
* src/xterm.c (x_construct_mouse_click): ‘||’ → ‘|’.
Typo found by clang 18.1.6 -Wbool-operation.

(cherry picked from commit ed305c4b98cda5c6d479310e4ba350a17d901e75)

src/xterm.c

index 45814e9ecc92bc4e6408912c47ca78a66c5556f2..8a7971fb25fec705e3ae897984a07319f85aaac1 100644 (file)
@@ -14691,7 +14691,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;
         }
     }