summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2017-09-14 13:11:22 +0200
committerMattes D <github@xoft.cz>2017-09-14 13:11:22 +0200
commit0968a4d360d5a28f9d474eb1bf878ed5155b1310 (patch)
treeff7a3ce92bdc90a09f172898966519cb1dda9e3b
parentFix switch warnings (#4013) (diff)
downloadcuberite-0968a4d360d5a28f9d474eb1bf878ed5155b1310.tar
cuberite-0968a4d360d5a28f9d474eb1bf878ed5155b1310.tar.gz
cuberite-0968a4d360d5a28f9d474eb1bf878ed5155b1310.tar.bz2
cuberite-0968a4d360d5a28f9d474eb1bf878ed5155b1310.tar.lz
cuberite-0968a4d360d5a28f9d474eb1bf878ed5155b1310.tar.xz
cuberite-0968a4d360d5a28f9d474eb1bf878ed5155b1310.tar.zst
cuberite-0968a4d360d5a28f9d474eb1bf878ed5155b1310.zip
Diffstat (limited to '')
-rw-r--r--src/Root.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index 9c92a10b9..ad54a075c 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -90,7 +90,7 @@ void cRoot::InputThread(cRoot & a_Params)
static const std::chrono::microseconds PollPeriod = std::chrono::milliseconds{ 100 };
timeval Timeout{ 0, 0 };
- Timeout.tv_usec = PollPeriod.count();
+ Timeout.tv_usec = static_cast<long>(PollPeriod.count());
fd_set ReadSet;
FD_ZERO(&ReadSet);