Commit 823708b73e462b56c9665c6d99c34dddd46a01a1

Ran Benita 2019-12-27T14:51:31

parser: fix format string for int64_t Signed-off-by: Ran Benita <ran@unusedvar.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/xkbcomp/parser.y b/src/xkbcomp/parser.y
index 45f9d90..d71056d 100644
--- a/src/xkbcomp/parser.y
+++ b/src/xkbcomp/parser.y
@@ -742,7 +742,7 @@ KeySym          :       IDENT
                             }
                             else {
                                 char buf[32];
-                                snprintf(buf, sizeof(buf), "0x%lx", $1);
+                                snprintf(buf, sizeof(buf), "0x%"PRIx64, $1);
                                 if (!resolve_keysym(buf, &$$)) {
                                     parser_warn(param, "unrecognized keysym \"%s\"", buf);
                                     $$ = XKB_KEY_NoSymbol;