]> git.ipfire.org Git - thirdparty/git.git/commit
reftable: use `uint16_t` to track restart interval
authorPatrick Steinhardt <ps@pks.im>
Mon, 13 May 2024 08:18:23 +0000 (10:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 May 2024 00:02:38 +0000 (17:02 -0700)
commit8e9e136d6172824dd77f8f83569ec3e5f7bc08cd
tree39ae0451347cca8a8ad05865a0ee8062eef748ab
parent831b366c243ecaa450289d76926bb687c746d495
reftable: use `uint16_t` to track restart interval

The restart interval can at most be `UINT16_MAX` as specified in the
technical documentation of the reftable format. Furthermore, it cannot
ever be negative. Regardless of that we use an `int` to track the
restart interval.

Change the type to use an `uint16_t` instead.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/block.h
reftable/reftable-writer.h