Skip to content
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

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/cluster_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -5544,12 +5544,12 @@ sds representClusterNodeFlags(sds ci, uint16_t flags) {
* else each slot is added separately. */
sds representSlotInfo(sds ci, uint16_t *slot_info_pairs, int slot_info_pairs_count) {
for (int i = 0; i < slot_info_pairs_count; i += 2) {
unsigned long start = slot_info_pairs[i];
unsigned long end = slot_info_pairs[i + 1];
unsigned int start = slot_info_pairs[i];
unsigned int end = slot_info_pairs[i + 1];
if (start == end) {
ci = sdscatfmt(ci, " %i", start);
ci = sdscatfmt(ci, " %u", start);
} else {
ci = sdscatfmt(ci, " %i-%i", start, end);
ci = sdscatfmt(ci, " %u-%u", start, end);
}
}
return ci;
Expand Down
2 changes: 1 addition & 1 deletion src/valkey-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -4395,7 +4395,7 @@ static sds clusterManagerNodeInfo(clusterManagerNode *node, int indent) {
if (node->replicate != NULL)
info = sdscatfmt(info, "\n%s replicates %S", spaces, node->replicate);
else if (node->replicas_count)
info = sdscatfmt(info, "\n%s %U additional replica(s)", spaces, node->replicas_count);
info = sdscatfmt(info, "\n%s %i additional replica(s)", spaces, node->replicas_count);
sdsfree(spaces);
return info;
}
Expand Down
Loading