mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
commit
75679b323b
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ const std::string gitInitialBranch = "__nix_dummy_branch";
|
|||
|
||||
bool isCacheFileWithinTtl(time_t now, const struct stat & st)
|
||||
{
|
||||
return st.st_mtime + settings.tarballTtl > now;
|
||||
return st.st_mtime + static_cast<time_t>(settings.tarballTtl) > now;
|
||||
}
|
||||
|
||||
Path getCachePath(std::string_view key, bool shallow)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue