From 2c0dc1498f60d6c8f4e55c5d5b11320933789736 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 16 Aug 2024 20:49:18 -0700 Subject: [PATCH] Fix x_construct_mouse_click || vs | typo MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/xterm.c (x_construct_mouse_click): ‘||’ → ‘|’. Typo found by clang 18.1.6 -Wbool-operation. (cherry picked from commit ed305c4b98cda5c6d479310e4ba350a17d901e75) --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.2