diff options
author | Dundar Göc <gocdundar@gmail.com> | 2022-02-27 12:29:33 +0100 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2022-03-04 19:52:41 +0100 |
commit | 4d2744ffe30c785ff19624831e36d01e3f6a6089 (patch) | |
tree | 31d0c58da0d3ec11c234a1152be0b9cf555de790 /src/cjson/lua_cjson.c | |
parent | 83fc914337100d03f2e41a3943ccf0107d893698 (diff) | |
download | rneovim-4d2744ffe30c785ff19624831e36d01e3f6a6089.tar.gz rneovim-4d2744ffe30c785ff19624831e36d01e3f6a6089.tar.bz2 rneovim-4d2744ffe30c785ff19624831e36d01e3f6a6089.zip |
refactor: fix clang-tidy bugprone-signed-char-misuse warnings
Prefer to declare variables with correct type instead of explicit casts
wherever possible.
Diffstat (limited to 'src/cjson/lua_cjson.c')
-rw-r--r-- | src/cjson/lua_cjson.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cjson/lua_cjson.c b/src/cjson/lua_cjson.c index b5f97bc485..c243f93c05 100644 --- a/src/cjson/lua_cjson.c +++ b/src/cjson/lua_cjson.c @@ -1110,7 +1110,7 @@ static int json_is_invalid_number(json_parse_t *json) /* Reject numbers starting with 0x, or leading zeros */ if (*p == '0') { - int ch2 = *(p + 1); + char ch2 = *(p + 1); if ((ch2 | 0x20) == 'x' || /* Hex */ ('0' <= ch2 && ch2 <= '9')) /* Leading zero */ |