Fixed build problems due to printf and std::clock_t #778
This commit is contained in:
@@ -68,7 +68,7 @@ namespace log2_
|
||||
|
||||
std::clock_t End = clock();
|
||||
|
||||
printf("glm::log2<int>: %ld clocks\n", End - Begin);
|
||||
printf("glm::log2<int>: %d clocks\n", static_cast<int>(End - Begin));
|
||||
}
|
||||
|
||||
{
|
||||
@@ -82,7 +82,7 @@ namespace log2_
|
||||
|
||||
std::clock_t End = clock();
|
||||
|
||||
printf("glm::log2<ivec4>: %ld clocks\n", End - Begin);
|
||||
printf("glm::log2<ivec4>: %d clocks\n", static_cast<int>(End - Begin));
|
||||
}
|
||||
|
||||
# if GLM_HAS_BITSCAN_WINDOWS
|
||||
@@ -104,7 +104,7 @@ namespace log2_
|
||||
|
||||
std::clock_t End = clock();
|
||||
|
||||
printf("glm::log2<ivec4> inlined: %ld clocks\n", End - Begin);
|
||||
printf("glm::log2<ivec4> inlined: %d clocks\n", static_cast<int>(End - Begin));
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ namespace log2_
|
||||
|
||||
std::clock_t End = clock();
|
||||
|
||||
printf("glm::log2<ivec4> inlined no cast: %ld clocks\n", End - Begin);
|
||||
printf("glm::log2<ivec4> inlined no cast: %d clocks\n", static_cast<int>(End - Begin));
|
||||
}
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace log2_
|
||||
|
||||
std::clock_t End = clock();
|
||||
|
||||
printf("glm::log2<ivec4> reinterpret: %ld clocks\n", End - Begin);
|
||||
printf("glm::log2<ivec4> reinterpret: %d clocks\n", static_cast<int>(End - Begin));
|
||||
}
|
||||
# endif//GLM_HAS_BITSCAN_WINDOWS
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace log2_
|
||||
|
||||
std::clock_t End = clock();
|
||||
|
||||
printf("glm::log2<float>: %ld clocks\n", End - Begin);
|
||||
printf("glm::log2<float>: %d clocks\n", static_cast<int>(End - Begin));
|
||||
}
|
||||
|
||||
{
|
||||
@@ -173,7 +173,7 @@ namespace log2_
|
||||
|
||||
std::clock_t End = clock();
|
||||
|
||||
printf("glm::log2<vec4>: %ld clocks\n", End - Begin);
|
||||
printf("glm::log2<vec4>: %d clocks\n", static_cast<int>(End - Begin));
|
||||
}
|
||||
|
||||
return Error;
|
||||
|
||||
Reference in New Issue
Block a user