Skip to content

Commit

Permalink
Fix cmp function
Browse files Browse the repository at this point in the history
  • Loading branch information
pelijah committed May 5, 2024
1 parent a6025ac commit 656d3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/core/serialize_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ static int __cmp_num_asc(const void *a, const void *b, RZ_UNUSED void *user) {
// Parse as signed ints but don't bother witb error detection, it'll sort bad and that's it
long ia = strtol(sdbkv_key(ka), NULL, 10);
long ib = strtol(sdbkv_key(kb), NULL, 10);
return ia > ib;
return RZ_NUM_CMP(ia, ib);
}

/**
Expand Down

0 comments on commit 656d3c0

Please sign in to comment.