Merge topic 'testdriver-old-cast-warning'

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

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6590
This commit is contained in:
Brad King
2021-10-05 13:01:49 +00:00
committed by Kitware Robot

View File

@@ -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);
}
}