Skip to content

Commit 3c8b797

Browse files
committed
Reduce size comparisons from 2 to 1
1 parent b214d73 commit 3c8b797

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/version_sorter/version_sorter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ compare_version_number(const struct version_number *a,
7171
}
7272
}
7373

74-
if (a->size == 0 || b->size == 0) {
74+
if (max_n == 0) {
7575
return strcmp(a->original, b->original);
7676
}
7777

0 commit comments

Comments
 (0)