emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ed305c4b98c 7/7: Fix x_construct_mouse_click || vs | typo


From: Paul Eggert
Subject: master ed305c4b98c 7/7: Fix x_construct_mouse_click || vs | typo
Date: Sat, 17 Aug 2024 00:16:49 -0400 (EDT)

branch: master
commit ed305c4b98cda5c6d479310e4ba350a17d901e75
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    Fix x_construct_mouse_click || vs | typo
    
    * src/xterm.c (x_construct_mouse_click): ‘||’ → ‘|’.
    Typo found by clang 18.1.6 -Wbool-operation.
---
 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;
         }
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]