Browse Source

Replace min() call with its literal definition

Zach Mullen 15 năm trước cách đây
mục cha
commit
4c59570bfb
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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);
 }
 
 //----------------------------------------------------------------------