Просмотр исходного кода

Replace min() call with its literal definition

Zach Mullen 16 лет назад
Родитель
Сommit
4c59570bfb
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Source/CTest/cmCTestRunTest.cxx

+ 2 - 1
Source/CTest/cmCTestRunTest.cxx

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