Cast clock_t to match printf format specifier

This is needed since clock_t type is unspecified and may differ from unsigned int.
This commit is contained in:
Dmitry Marakasov 2024-03-01 20:22:31 +03:00 committed by Christophe
parent f8df2f3e2e
commit dcc5cfdc4a

View File

@ -392,7 +392,7 @@ static int test_inverse_perf(std::size_t Count, std::size_t Instance, char const
//glm::uint Ulp = 0;
//Ulp = glm::max(glm::float_distance(*Dst, *Src), Ulp);
std::printf("inverse<%s>(%f): %lu\n", Message, static_cast<double>(Diff), EndTime - StartTime);
std::printf("inverse<%s>(%f): %lu\n", Message, static_cast<double>(Diff), static_cast<unsigned long>(EndTime - StartTime));
return 0;
}