Skip to content

Commit dcc5cfd

Browse files
AMDmi3christophe-lunarg
authored andcommitted
Cast clock_t to match printf format specifier
This is needed since clock_t type is unspecified and may differ from unsigned int.
1 parent f8df2f3 commit dcc5cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/core/core_func_matrix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ static int test_inverse_perf(std::size_t Count, std::size_t Instance, char const
392392
//glm::uint Ulp = 0;
393393
//Ulp = glm::max(glm::float_distance(*Dst, *Src), Ulp);
394394

395-
std::printf("inverse<%s>(%f): %lu\n", Message, static_cast<double>(Diff), EndTime - StartTime);
395+
std::printf("inverse<%s>(%f): %lu\n", Message, static_cast<double>(Diff), static_cast<unsigned long>(EndTime - StartTime));
396396

397397
return 0;
398398
}

0 commit comments

Comments
 (0)