summaryrefslogtreecommitdiff
path: root/lib/cmp_filetime.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cmp_filetime.h')
-rw-r--r--lib/cmp_filetime.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cmp_filetime.h b/lib/cmp_filetime.h
index eb595ace..4e75675b 100644
--- a/lib/cmp_filetime.h
+++ b/lib/cmp_filetime.h
@@ -11,9 +11,9 @@ inline
bool sameFileTime(const Int64& a, const Int64& b, size_t tolerance)
{
if (a < b)
- return b <= a + static_cast<int>(tolerance);
+ return b <= a + static_cast<ptrdiff_t>(tolerance);
else
- return a <= b + static_cast<int>(tolerance);
+ return a <= b + static_cast<ptrdiff_t>(tolerance);
}
//---------------------------------------------------------------------------------------------------------------
bgstack15