mirror of
https://github.com/Dushistov/sdcv.git
synced 2026-03-26 14:00:25 +00:00
Use off_t for stuff mainly assigned to a stat.st_size value
Allows simplifying the mmap sanity checks in mapfile, and actually ensuring they won't break when -D_FILE_OFFSET_BITS=64
This commit is contained in:
committed by
Evgeniy Dushistov
parent
b698445ead
commit
488ec68854
@@ -27,7 +27,7 @@ public:
|
||||
private:
|
||||
const char *start; /* start of mmap'd area */
|
||||
const char *end; /* end of mmap'd area */
|
||||
unsigned long size; /* size of mmap */
|
||||
off_t size; /* size of mmap */
|
||||
|
||||
int type;
|
||||
z_stream zStream;
|
||||
@@ -47,7 +47,7 @@ private:
|
||||
std::string origFilename;
|
||||
std::string comment;
|
||||
unsigned long crc;
|
||||
unsigned long length;
|
||||
off_t length;
|
||||
unsigned long compressedLength;
|
||||
DictCache cache[DICT_CACHE_SIZE];
|
||||
MapFile mapfile;
|
||||
|
||||
Reference in New Issue
Block a user