From feb9b3373f8a712add948d7123b3f69e04fad87a Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Mon, 4 Jul 2022 14:25:17 +0200 Subject: [PATCH] fix the type cast, to avoid warnings on some platforms --- src/runtime/c/pgf/db.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/c/pgf/db.cxx b/src/runtime/c/pgf/db.cxx index 6412ebe28..4993c47db 100644 --- a/src/runtime/c/pgf/db.cxx +++ b/src/runtime/c/pgf/db.cxx @@ -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);