]> git.ipfire.org Git - thirdparty/git.git/commit
repack.c: LLP64 compatibility, upcast unity for left shift
authorPhilip Oakley <philipoakley@iee.email>
Wed, 1 Dec 2021 00:29:00 +0000 (00:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Dec 2021 22:48:09 +0000 (14:48 -0800)
commita43abad1e3bfb20864cd3873a4a8b86f845bae1a
treea64fa7b9261698d4c0d9b0be728e3b92bf99b07a
parent35151cf0720460a897cde9b8039af364743240e7
repack.c: LLP64 compatibility, upcast unity for left shift

Visual Studio reports C4334 "was 64-bit shift intended" warning
because of size mismatch.

Promote unity to the matching type to fit with the `&` operator.

Signed-off-by: Philip Oakley <philipoakley@iee.email>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c