]> git.99rst.org Git - git.git/commit
mergesort: avoid left shift overflow
authorRené Scharfe <redacted>
Mon, 15 Nov 2021 23:19:38 +0000 (00:19 +0100)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
mergesort.c
git clone https://git.99rst.org/PROJECT