Skip to content

Commit b3bbbd2

Browse files
committed
fix armv7/i686 build
1 parent e27d804 commit b3bbbd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libfetchers/git.cc

Lines changed: 1 addition & 1 deletion
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)