diff --git a/test/core/core_setup_message.cpp b/test/core/core_setup_message.cpp index 0955f2e1..09ef6a36 100644 --- a/test/core/core_setup_message.cpp +++ b/test/core/core_setup_message.cpp @@ -196,7 +196,7 @@ int test_instruction_set() int test_cpp_version() { - std::printf("__cplusplus: %d\n", __cplusplus); + std::printf("__cplusplus: %ld\n", __cplusplus); return 0; } diff --git a/test/core/core_type_vec4.cpp b/test/core/core_type_vec4.cpp index fa724399..be023307 100644 --- a/test/core/core_type_vec4.cpp +++ b/test/core/core_type_vec4.cpp @@ -398,7 +398,7 @@ int test_vec4_perf_AoS(std::size_t Size) std::clock_t EndTime = std::clock(); - std::printf("AoS: %d\n", EndTime - StartTime); + std::printf("AoS: %ld\n", EndTime - StartTime); return Error; } @@ -437,7 +437,7 @@ int test_vec4_perf_SoA(std::size_t Size) std::clock_t EndTime = std::clock(); - std::printf("SoA: %d\n", EndTime - StartTime); + std::printf("SoA: %ld\n", EndTime - StartTime); return Error; } diff --git a/test/gtc/gtc_integer.cpp b/test/gtc/gtc_integer.cpp index 64d9377c..df1d3fdb 100644 --- a/test/gtc/gtc_integer.cpp +++ b/test/gtc/gtc_integer.cpp @@ -99,7 +99,7 @@ namespace log2_ std::clock_t End = clock(); - printf("glm::log2: %d clocks\n", End - Begin); + printf("glm::log2: %ld clocks\n", End - Begin); } { @@ -113,7 +113,7 @@ namespace log2_ std::clock_t End = clock(); - printf("glm::log2: %d clocks\n", End - Begin); + printf("glm::log2: %ld clocks\n", End - Begin); } # if GLM_HAS_BITSCAN_WINDOWS @@ -135,7 +135,7 @@ namespace log2_ std::clock_t End = clock(); - printf("glm::log2 inlined: %d clocks\n", End - Begin); + printf("glm::log2 inlined: %ld clocks\n", End - Begin); } @@ -155,7 +155,7 @@ namespace log2_ std::clock_t End = clock(); - printf("glm::log2 inlined no cast: %d clocks\n", End - Begin); + printf("glm::log2 inlined no cast: %ld clocks\n", End - Begin); } @@ -175,7 +175,7 @@ namespace log2_ std::clock_t End = clock(); - printf("glm::log2 reinterpret: %d clocks\n", End - Begin); + printf("glm::log2 reinterpret: %ld clocks\n", End - Begin); } # endif//GLM_HAS_BITSCAN_WINDOWS @@ -190,7 +190,7 @@ namespace log2_ std::clock_t End = clock(); - printf("glm::log2: %d clocks\n", End - Begin); + printf("glm::log2: %ld clocks\n", End - Begin); } { @@ -204,7 +204,7 @@ namespace log2_ std::clock_t End = clock(); - printf("glm::log2: %d clocks\n", End - Begin); + printf("glm::log2: %ld clocks\n", End - Begin); } return Error; diff --git a/test/gtx/gtx_type_aligned.cpp b/test/gtx/gtx_type_aligned.cpp index aeff2b7e..b69a6307 100644 --- a/test/gtx/gtx_type_aligned.cpp +++ b/test/gtx/gtx_type_aligned.cpp @@ -47,7 +47,7 @@ int test_decl() glm::vec4 B; }; - printf("vec4 - Aligned: %d, unaligned: %d\n", sizeof(S1), sizeof(S2)); + printf("vec4 - Aligned: %ld, unaligned: %ld\n", sizeof(S1), sizeof(S2)); Error += sizeof(S1) >= sizeof(S2) ? 0 : 1; } @@ -65,7 +65,7 @@ int test_decl() glm::aligned_vec3 B; }; - printf("vec3: %d, aligned: %d\n", sizeof(S1), sizeof(S2)); + printf("vec3: %ld, aligned: %ld\n", sizeof(S1), sizeof(S2)); Error += sizeof(S1) <= sizeof(S2) ? 0 : 1; } @@ -83,7 +83,7 @@ int test_decl() glm::vec4 B; }; - printf("vec4 - Aligned: %d, unaligned: %d\n", sizeof(S1), sizeof(S2)); + printf("vec4 - Aligned: %ld, unaligned: %ld\n", sizeof(S1), sizeof(S2)); Error += sizeof(S1) >= sizeof(S2) ? 0 : 1; } @@ -101,7 +101,7 @@ int test_decl() glm::dvec4 B; }; - printf("dvec4 - Aligned: %d, unaligned: %d\n", sizeof(S1), sizeof(S2)); + printf("dvec4 - Aligned: %ld, unaligned: %ld\n", sizeof(S1), sizeof(S2)); Error += sizeof(S1) >= sizeof(S2) ? 0 : 1; }