From 8b86653da6d0cc80ccf6c51900dbbf596eba23ac Mon Sep 17 00:00:00 2001 From: C Stout Date: Fri, 12 Jul 2024 07:44:11 -0700 Subject: [PATCH] util: fix 32bit compiler error in fossilize_db error: in call to 'fwrite', size * count is too large for the given buffer sizeof(uint64_t) is used in the call to fwrite. Part-of: --- src/util/fossilize_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/fossilize_db.c b/src/util/fossilize_db.c index ac9bc752151..df2d3a1d284 100644 --- a/src/util/fossilize_db.c +++ b/src/util/fossilize_db.c @@ -699,7 +699,7 @@ foz_write_entry(struct foz_db *foz_db, const uint8_t *cache_key_160bit, FOSSILIZE_BLOB_HASH_LENGTH) goto fail; - off_t offset = ftell(foz_db->file[0]); + uint64_t offset = ftell(foz_db->file[0]); /* Write db entry header */ if (fwrite(&header, 1, sizeof(header), foz_db->file[0]) != sizeof(header))