]> git.ipfire.org Git - thirdparty/git.git/commit
mergesort: avoid left shift overflow
authorRené Scharfe <l.s.r@web.de>
Mon, 15 Nov 2021 23:19:38 +0000 (00:19 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Nov 2021 20:42:06 +0000 (12:42 -0800)
commit42c456ff8116fb0373c5cf6df54d34cb343b058e
tree2ff1840c666728ead461b2f249a8ca98fb954962
parentc90cfc225baaf64af311f7e2953267e4de636205
mergesort: avoid left shift overflow

Use size_t to match n when building the bitmask for checking whether a
rank is occupied, instead of the default signed int.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mergesort.c