projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2d642c
)
util/fossilize_db: Use uint64_t for file size.
author
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Sat, 7 Aug 2021 21:20:13 +0000
(23:20 +0200)
committer
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Sun, 8 Aug 2021 11:34:35 +0000
(13:34 +0200)
For those 32-bit systems with 4G of cache.
Fixes:
2ec1bff0f3a
"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>
src/util/fossilize_db.c
patch
|
blob
|
history
diff --git
a/src/util/fossilize_db.c
b/src/util/fossilize_db.c
index
5295d5c
..
d3c039e
100644
(file)
--- a/
src/util/fossilize_db.c
+++ b/
src/util/fossilize_db.c
@@
-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)