mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
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);
|
||||
|
||||
mmap_size = lseek(fd, 0, SEEK_END);
|
||||
if (mmap_size == ((off_t) -1)) {
|
||||
if (mmap_size == ((size_t) -1)) {
|
||||
int code = errno;
|
||||
close(fd);
|
||||
throw pgf_systemerror(code, filepath);
|
||||
|
||||
Reference in New Issue
Block a user