2
0
mirror of https://github.com/boostorg/process.git synced 2026-02-02 21:12:14 +00:00

Fix signed/unsigned comparison

This commit is contained in:
Orgad Shaneh
2019-03-20 12:16:57 +02:00
parent 14b294c10c
commit 4d52ff362f

View File

@@ -48,7 +48,7 @@ inline bool wait_impl(const group_handle & p, std::error_code & ec, std::chrono:
return false; //correct, nothing left.
}
//reduce the remaining wait time -> in case interrupted by something else
if (wait_time != ::boost::winapi::infinite)
if (wait_time != static_cast<int>(::boost::winapi::infinite))
{
auto now = std::chrono::system_clock::now();
auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(now - start_time);