mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 07:09:22 +00:00
Test using std::min
This commit is contained in:
parent
4c59570bfb
commit
0d48f81d32
@ -564,8 +564,8 @@ double cmCTestRunTest::ResolveTimeout()
|
||||
"Exiting ctest." << std::endl);
|
||||
exit(-1);
|
||||
}
|
||||
return timeout == 0 ? stop_timeout :
|
||||
(timeout < stop_timeout ? timeout : stop_timeout);
|
||||
#undef min
|
||||
return timeout == 0 ? stop_timeout : std::min(timeout, stop_timeout);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user