From 67e526c33e025918c146c7cb61007cc2ffc46661 Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Sat, 7 Feb 2026 20:04:33 +0000 Subject: hash: use uint32_t for object_id algorithm We currently use an int for this value, but we'll define this structure from Rust in a future commit and we want to ensure that our data types are exactly identical. To make that possible, use a uint32_t for the hash algorithm. Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- oidtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oidtree.c') diff --git a/oidtree.c b/oidtree.c index 151568f74f..324de94934 100644 --- a/oidtree.c +++ b/oidtree.c @@ -10,7 +10,7 @@ struct oidtree_iter_data { oidtree_iter fn; void *arg; size_t *last_nibble_at; - int algo; + uint32_t algo; uint8_t last_byte; }; -- cgit v1.3