summaryrefslogtreecommitdiff
path: root/lib/cmp_filetime.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:35 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:24:35 +0200
commit460091fb0b2ff114cc741372f15bb43b702ea3b1 (patch)
tree0562c2eda4c66969c6e6d0910080db9f5b0def3e /lib/cmp_filetime.h
parent5.15 (diff)
downloadFreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.tar.gz
FreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.tar.bz2
FreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.zip
5.16
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