Skip to content

Commit

Permalink
networkfilemanager.cpp: fix compiler warnings on 32-bit systems where…
Browse files Browse the repository at this point in the history
… time_t is 32-bit
  • Loading branch information
a0x8o committed Sep 20, 2021
1 parent ed8d914 commit 228a571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/networkfilemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ bool NetworkFilePropertiesCache::tryGet(PJ_CONTEXT *ctx, const std::string &url,
if (stmt->execute() != SQLITE_ROW) {
return false;
}
props.lastChecked = stmt->getInt64();
props.lastChecked = static_cast<time_t>(stmt->getInt64());
props.size = stmt->getInt64();
const char *lastModified = stmt->getText();
props.lastModified = lastModified ? lastModified : std::string();
Expand Down Expand Up @@ -2265,7 +2265,7 @@ int proj_is_download_needed(PJ_CONTEXT *ctx, const char *url_or_filename,
}

NS_PROJ::FileProperties cachedProps;
cachedProps.lastChecked = stmt->getInt64();
cachedProps.lastChecked = static_cast<time_t>(stmt->getInt64());
cachedProps.size = stmt->getInt64();
const char *lastModified = stmt->getText();
cachedProps.lastModified = lastModified ? lastModified : std::string();
Expand Down

0 comments on commit 228a571

Please sign in to comment.