mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 08:54:35 +00:00
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:
parent
f8df2f3e2e
commit
dcc5cfdc4a
@ -392,7 +392,7 @@ static int test_inverse_perf(std::size_t Count, std::size_t Instance, char const
|
|||||||
//glm::uint Ulp = 0;
|
//glm::uint Ulp = 0;
|
||||||
//Ulp = glm::max(glm::float_distance(*Dst, *Src), Ulp);
|
//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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user