Przeglądaj źródła

Merge topic 'testdriver-old-cast-warning' into release-3.21

ba54092842 TestDriver: Fix old-style-cast warning in C++ mode

Acked-by: Kitware Robot <[email protected]>
Merge-request: !6590
Brad King 4 lat temu
rodzic
commit
7518fc0c31
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Templates/TestDriver.cxx.in

+ 1 - 1
Templates/TestDriver.cxx.in

@@ -138,7 +138,7 @@ int main(int ac, char* av[])
       t = clock() - t;
       status_message = (status == -1) ? "not ok" : "ok";
       {
-        double time_taken = ((double)t) / CLOCKS_PER_SEC;
+        double time_taken = CM_CAST(double, t) / CLOCKS_PER_SEC;
         printf("%s %d %s # %f\n", status_message, i + 1, name, time_taken);
       }
     }