summaryrefslogtreecommitdiff
path: root/src/xkbcomp/keycodes.c
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2019-12-27 21:51:34 +0200
committerRan Benita <ran@unusedvar.com>2019-12-27 21:55:14 +0200
commitfbd0e643d811da899110b1bc5f899284adef48e4 (patch)
tree426ce390a88b4c3d567a4435f44af10fda52140d /src/xkbcomp/keycodes.c
parentf967d46b65329dd1a03151d5904ffe40e8467b2c (diff)
downloadxorg-lib-libxkbcommon-fbd0e643d811da899110b1bc5f899284adef48e4.tar.gz
xkbcomp: make a couple of casts explicit to mark them as checked
This acknowledges some "possible loss of data cast" warnings from MSVC. Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'src/xkbcomp/keycodes.c')
-rw-r--r--src/xkbcomp/keycodes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xkbcomp/keycodes.c b/src/xkbcomp/keycodes.c
index 4b72d05..b8abf36 100644
--- a/src/xkbcomp/keycodes.c
+++ b/src/xkbcomp/keycodes.c
@@ -384,7 +384,8 @@ HandleKeycodeDef(KeyNamesInfo *info, KeycodeDef *stmt, enum merge_mode merge)
return false;
}
- return AddKeyName(info, stmt->value, stmt->name, merge, false, true);
+ return AddKeyName(info, (xkb_keycode_t) stmt->value,
+ stmt->name, merge, false, true);
}
static bool