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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30154>
This commit is contained in:
C Stout
2024-07-12 07:44:11 -07:00
committed by Marge Bot
parent 1af2f5e198
commit 8b86653da6

View File

@@ -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))