修复编译警告

This commit is contained in:
xia-chu
2024-07-21 19:31:17 +08:00
parent 6583e2869a
commit 9463d1291d
9 changed files with 20 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ static bool loadFile(const char *path, const EventPoller::Ptr &poller) {
return 0;
}
auto diff = stamp - stamp_last;
auto diff = static_cast<int64_t>(stamp - stamp_last);
if (diff < 0 || diff > 500) {
diff = 1;
}