fix the type cast, to avoid warnings on some platforms

This commit is contained in:
Krasimir Angelov
2022-07-04 14:25:17 +02:00
parent 1862ba5cec
commit feb9b3373f

View File

@@ -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);