Browse Source

Replace min() call with its literal definition

Zach Mullen 15 years ago
parent
commit
4c59570bfb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/CTest/cmCTestRunTest.cxx

+ 2 - 1
Source/CTest/cmCTestRunTest.cxx

@@ -564,7 +564,8 @@ double cmCTestRunTest::ResolveTimeout()
       "Exiting ctest." << std::endl);
     exit(-1);
     }
-  return timeout == 0 ? stop_timeout : min(timeout, stop_timeout);
+  return timeout == 0 ? stop_timeout :
+    (timeout < stop_timeout ? timeout : stop_timeout);
 }
 
 //----------------------------------------------------------------------