util/fossilize_db: Use uint64_t for file size.
For those 32-bit systems with 4G of cache.
Fixes: 2ec1bff0f3
"util/fossilize_db: Split out reading the index."
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12266>
This commit is contained in:
@@ -112,7 +112,7 @@ update_foz_index(struct foz_db *foz_db, FILE *db_idx, unsigned file_idx)
|
||||
{
|
||||
uint64_t offset = ftell(db_idx);
|
||||
fseek(db_idx, 0, SEEK_END);
|
||||
size_t len = ftell(db_idx);
|
||||
uint64_t len = ftell(db_idx);
|
||||
uint64_t parsed_offset = offset;
|
||||
|
||||
if (offset == len)
|
||||
|
Reference in New Issue
Block a user