]> git.ipfire.org Git - thirdparty/git.git/commit
git-compat-util.h: introduce `u32_add()`
authorTaylor Blau <me@ttaylorr.com>
Sat, 6 Dec 2025 20:31:28 +0000 (15:31 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Dec 2025 22:38:08 +0000 (07:38 +0900)
commit35364d7abaf9bd707f978c6efc6bf0eb005cc573
tree188c9ecebbe3426cfde1218ac816834398524dea
parentb40e7cbca25bed9715d29e8d9130bd14bf165225
git-compat-util.h: introduce `u32_add()`

A future commit will want to add two 32-bit unsigned values together
while checking for overflow. Introduce a variant of the u64_add()
function for operating on 32-bit inputs.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h