From: Patrick Steinhardt Date: Mon, 20 Jan 2025 16:17:26 +0000 (+0100) Subject: reftable/blocksource: adjust type of the block length X-Git-Tag: v2.49.0-rc0~77^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f054af72f509f1247687b91a360961b5d930869;p=thirdparty%2Fgit.git reftable/blocksource: adjust type of the block length The block length is used to track the number of bytes available in a specific block. As such, it is never set to a negative value, but is still represented by a signed integer. Adjust the type of the variable to be `size_t`. Signed-off-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- diff --git a/reftable/reftable-blocksource.h b/reftable/reftable-blocksource.h index 5aa3990a57..f06ad52e0a 100644 --- a/reftable/reftable-blocksource.h +++ b/reftable/reftable-blocksource.h @@ -22,7 +22,7 @@ struct reftable_block_source { * so it can return itself into the pool. */ struct reftable_block { uint8_t *data; - int len; + size_t len; struct reftable_block_source source; };