summaryrefslogtreecommitdiff
path: root/src/map/grfio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/grfio.cpp')
-rw-r--r--src/map/grfio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/grfio.cpp b/src/map/grfio.cpp
index 3475108..83a65de 100644
--- a/src/map/grfio.cpp
+++ b/src/map/grfio.cpp
@@ -100,7 +100,7 @@ std::vector<uint8_t> grfio_reads(MapName rname)
rname, lfname);
return {};
}
- off_t len = lseek(fd, 0, SEEK_END);
+ int64_t len = lseek(fd, 0, SEEK_END);
assert (len != -1);
std::vector<uint8_t> buffer(len);
ssize_t err = pread(fd, buffer.data(), len, 0);