parser: fix format string for int64_t Signed-off-by: Ran Benita <ran@unusedvar.com>
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;