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:
Bas Nieuwenhuizen
2021-08-07 23:20:13 +02:00
parent d2d642cc01
commit 1c4dce1aa7

View File

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