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

A C-style cast was added by commit 3f6ff4b5db (create_test_sourcelist:
add test driver option to run all tests, 2021-04-27, v3.21.0-rc1~257^2).
Use our `CM_CAST` macro to adapt based on the language.
This commit is contained in:
Sylvain Joubert
2021-10-04 15:28:18 +02:00
committed by Brad King
parent d1a7e78c4f
commit ba54092842

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