forked from GitHub/gf-core
fix the type cast, to avoid warnings on some platforms
This commit is contained in:
@@ -132,7 +132,7 @@ PgfDB::PgfDB(const char* filepath, int flags, int mode) {
|
|||||||
throw pgf_systemerror(errno, filepath);
|
throw pgf_systemerror(errno, filepath);
|
||||||
|
|
||||||
mmap_size = lseek(fd, 0, SEEK_END);
|
mmap_size = lseek(fd, 0, SEEK_END);
|
||||||
if (mmap_size == ((off_t) -1)) {
|
if (mmap_size == ((size_t) -1)) {
|
||||||
int code = errno;
|
int code = errno;
|
||||||
close(fd);
|
close(fd);
|
||||||
throw pgf_systemerror(code, filepath);
|
throw pgf_systemerror(code, filepath);
|
||||||
|
|||||||
Reference in New Issue
Block a user