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 <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Jan 20, 2025 at 17:17 UTC 1f054af72f509f1247687b91a360961b5d930869
1 file changed +1 -1
reftable/reftable-blocksource.h
+1 -1
@@ -22,7 +22,7 @@ struct reftable_block_source {
22 * so it can return itself into the pool. */
23 struct reftable_block {
24 uint8_t *data;
25 - int len;
25 + size_t len;
26 struct reftable_block_source source;
27 };
28