mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 10:40:36 +01:00
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> (cherry picked from commit1c4dce1aa7)
This commit is contained in:
parent
ee56d2c88a
commit
7b2a115225
2 changed files with 2 additions and 2 deletions
|
|
@ -580,7 +580,7 @@
|
|||
"description": "util/fossilize_db: Use uint64_t for file size.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "2ec1bff0f3a4450a9739d59421dc9c9fe72c94c6"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue