Skip to content

Commit

Permalink
Cast clock_t to match printf format specifier
Browse files Browse the repository at this point in the history
This is needed since clock_t type is unspecified and may differ from unsigned int.
  • Loading branch information
AMDmi3 authored and christophe-lunarg committed Mar 4, 2024
1 parent f8df2f3 commit dcc5cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/core/core_func_matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dcc5cfd

Please sign in to comment.