From: Paul Eggert Date: Sat, 17 Aug 2024 03:49:18 +0000 (-0700) Subject: Fix x_construct_mouse_click || vs | typo X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2c0dc1498f60d6c8f4e55c5d5b11320933789736;p=emacs.git Fix x_construct_mouse_click || vs | typo * src/xterm.c (x_construct_mouse_click): ‘||’ → ‘|’. Typo found by clang 18.1.6 -Wbool-operation. (cherry picked from commit ed305c4b98cda5c6d479310e4ba350a17d901e75) --- diff --git a/src/xterm.c b/src/xterm.c index 45814e9ecc9..8a7971fb25f 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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; } }