< prev index next >

src/java.desktop/unix/native/libawt_xawt/xawt/XWindow.c

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -835,14 +835,14 @@
     Boolean bxkb = isXKBenabled( event->xkey.display );
     return IsKeypadKey( XKeycodeToKeysym(event->xkey.display, event->xkey.keycode,(bsun && !bxkb ? 2 : 1) ) );
 }
 static void
 dumpKeysymArray(XEvent *event) {
-    printf("    0x%X\n",XKeycodeToKeysym(event->xkey.display, event->xkey.keycode, 0));
-    printf("    0x%X\n",XKeycodeToKeysym(event->xkey.display, event->xkey.keycode, 1));
-    printf("    0x%X\n",XKeycodeToKeysym(event->xkey.display, event->xkey.keycode, 2));
-    printf("    0x%X\n",XKeycodeToKeysym(event->xkey.display, event->xkey.keycode, 3));
+    printf("    0x%X\n", (unsigned int) XKeycodeToKeysym(event->xkey.display, event->xkey.keycode, 0));
+    printf("    0x%X\n", (unsigned int) XKeycodeToKeysym(event->xkey.display, event->xkey.keycode, 1));
+    printf("    0x%X\n", (unsigned int) XKeycodeToKeysym(event->xkey.display, event->xkey.keycode, 2));
+    printf("    0x%X\n", (unsigned int) XKeycodeToKeysym(event->xkey.display, event->xkey.keycode, 3));
 }
 /*
  * In a next redesign, get rid of this code altogether.
  *
  */
< prev index next >