Skip to content

Commit 75679b3

Browse files
authored
Merge pull request #13043 from Mic92/fix-build
fix armv7/i686 build
2 parents e27d804 + b3bbbd2 commit 75679b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libfetchers/git.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const std::string gitInitialBranch = "__nix_dummy_branch";
3838

3939
bool isCacheFileWithinTtl(time_t now, const struct stat & st)
4040
{
41-
return st.st_mtime + settings.tarballTtl > now;
41+
return st.st_mtime + static_cast<time_t>(settings.tarballTtl) > now;
4242
}
4343

4444
Path getCachePath(std::string_view key, bool shallow)

0 commit comments

Comments
 (0)