]> git.ipfire.org Git - thirdparty/git.git/commit
git-compat-util.h: introduce `u32_add()`
authorTaylor Blau <me@ttaylorr.com>
Wed, 14 Jan 2026 19:54:48 +0000 (14:54 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Jan 2026 20:52:58 +0000 (12:52 -0800)
commitc253c55ca6dfd7e8d171fc9627cfe7a2ae668527
treea4338f6400d885976e1bed0be0c94ebf4fd2b9f8
parent8de6741d3a5d50c0ade05661d069077d92f735fc
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