Skip to content

Commit ed00ac0

Browse files
authored
Merge pull request libgit2#4314 from pks-t/pks/timsort
tsort: remove idempotent conditional assignment
2 parents 8f9d2bb + fdbb40f commit ed00ac0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/tsort.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ static ssize_t collapse(void **dst, struct tsort_run *stack, ssize_t stack_curr,
310310
#define PUSH_NEXT() do {\
311311
len = count_run(dst, curr, size, store);\
312312
run = minrun;\
313-
if (run < minrun) run = minrun;\
314313
if (run > (ssize_t)size - curr) run = size - curr;\
315314
if (run > len) {\
316315
bisort(&dst[curr], len, run, cmp, payload);\

0 commit comments

Comments
 (0)