emacs-diffs
[Top][All Lists]
Advanced

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

master c05b013174: Avoid use of `uint' type in XKB code


From: Po Lu
Subject: master c05b013174: Avoid use of `uint' type in XKB code
Date: Wed, 9 Nov 2022 07:20:36 -0500 (EST)

branch: master
commit c05b0131745987d062bb0d324af38f3d55c833ba
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Avoid use of `uint' type in XKB code
    
    * src/xterm.c (x_find_modifier_meanings, handle_one_xevent): Use
    `unsigned int' instead of `uint'.
---
 src/xterm.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index 861cf5da54..fd04061436 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -13522,7 +13522,7 @@ x_find_modifier_meanings (struct x_display_info 
*dpyinfo)
 #ifdef HAVE_XKB
   int i;
   int found_meta_p = false;
-  uint vmodmask;
+  unsigned int vmodmask;
 #endif
 
   dpyinfo->meta_mod_mask = 0;
@@ -23079,7 +23079,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
              char *copy_bufptr = copy_buffer;
              int copy_bufsiz = sizeof (copy_buffer);
              ptrdiff_t i;
-             uint old_state;
+             unsigned int old_state;
              struct xi_device_t *device, *source;
 
              coding = Qlatin_1;
@@ -23225,8 +23225,9 @@ handle_one_xevent (struct x_display_info *dpyinfo,
 #ifdef HAVE_XKB
              if (dpyinfo->xkb_desc)
                {
-                 uint xkb_state = state;
-                 xkb_state &= ~(1 << 13 | 1 << 14);
+                 unsigned int xkb_state;
+
+                 xkb_state = state & ~(1 << 13 | 1 << 14);
                  xkb_state |= xev->group.effective << 13;
 
                  if (!XkbTranslateKeyCode (dpyinfo->xkb_desc, keycode,



reply via email to

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