1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

fix armv7/i686 build

This commit is contained in:
Jörg Thalheim 2025-04-17 13:54:14 +02:00
parent e27d804929
commit b3bbbd2e71

View file

@ -38,7 +38,7 @@ const std::string gitInitialBranch = "__nix_dummy_branch";
bool isCacheFileWithinTtl(time_t now, const struct stat & st) 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) Path getCachePath(std::string_view key, bool shallow)