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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user