summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2017-03-17 20:01:58 -0700
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2017-03-17 20:01:58 -0700
commit78ef2c5f16524684b4682ac2ef614abe1ed62dd7 (patch)
tree274fc13f79fa618018d561bc78a955af69fac23f /osdep
parentec8e1178e5cfbe9cd790928dd06562af734a2d48 (diff)
downloadinfinitytier-78ef2c5f16524684b4682ac2ef614abe1ed62dd7.tar.gz
infinitytier-78ef2c5f16524684b4682ac2ef614abe1ed62dd7.zip
Windows build fixes, app about text revisions.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/OSUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/OSUtils.cpp b/osdep/OSUtils.cpp
index aac6bdd8..33e143da 100644
--- a/osdep/OSUtils.cpp
+++ b/osdep/OSUtils.cpp
@@ -125,7 +125,7 @@ long OSUtils::cleanDirectory(const char *path,const uint64_t olderThan)
date.LowPart = ffd.ftLastWriteTime.dwLowDateTime;
if (date.QuadPart > 0) {
date.QuadPart -= adjust.QuadPart;
- if (((date.QuadPart / 10000000) * 1000) < olderThan) {
+ if ((uint64_t)((date.QuadPart / 10000000) * 1000) < olderThan) {
Utils::snprintf(tmp, sizeof(tmp), "%s\\%s", path, ffd.cFileName);
if (DeleteFileA(tmp))
++cleaned;