diff options
author | Ran Benita <ran@unusedvar.com> | 2019-12-27 21:51:34 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2019-12-27 21:55:14 +0200 |
commit | fbd0e643d811da899110b1bc5f899284adef48e4 (patch) | |
tree | 426ce390a88b4c3d567a4435f44af10fda52140d /src/xkbcomp/keycodes.c | |
parent | f967d46b65329dd1a03151d5904ffe40e8467b2c (diff) | |
download | libxkbcommon-fbd0e643d811da899110b1bc5f899284adef48e4.tar.gz libxkbcommon-fbd0e643d811da899110b1bc5f899284adef48e4.tar.bz2 libxkbcommon-fbd0e643d811da899110b1bc5f899284adef48e4.zip |
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.c | 3 |
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 |