Skip to content

Commit 1f054af

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b1e4b6f commit 1f054af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reftable/reftable-blocksource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct reftable_block_source {
2222
* so it can return itself into the pool. */
2323
struct reftable_block {
2424
uint8_t *data;
25-
int len;
25+
size_t len;
2626
struct reftable_block_source source;
2727
};
2828

0 commit comments

Comments
 (0)