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

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

Promote unity to the matching type to fit with the assignment.

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