-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix argument types of formatting functions #1253
base: unstable
Are you sure you want to change the base?
Conversation
4cfef26
to
9352768
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #1253 +/- ##
============================================
- Coverage 70.70% 70.68% -0.02%
============================================
Files 114 114
Lines 63157 63158 +1
============================================
- Hits 44653 44644 -9
- Misses 18504 18514 +10
|
deps/lua/src/lua_cjson.c
Outdated
@@ -1131,7 +1131,7 @@ static void json_decode_descend(lua_State *l, json_parse_t *json, int slots) | |||
|
|||
strbuf_free(json->tmp); | |||
luaL_error(l, "Found too many nested data structures (%d) at character %d", | |||
json->current_depth, json->ptr - json->data); | |||
json->current_depth, (int)(json->ptr - json->data)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather leave lua alone if we can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I know, but it's a vendored dependency and we would prefer it stay as it is upstream.
`cluster_legacy.c`: `slot_info_pairs` has `uint16_t` values, but they were cast to `unsigned long` and `%i` was used. `valkey-cli.c`: `node->replicas_count` is `int`, not `unsigned long`. Signed-off-by: ArtSin <[email protected]>
9352768
to
e78d9eb
Compare
cluster_legacy.c
:slot_info_pairs
hasuint16_t
values, but they were cast tounsigned long
and%i
was used.valkey-cli.c
:node->replicas_count
isint
, notunsigned long
.