From c4794851aa04104f75929b8ccdb74e6acfa8c50c Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 18 Aug 2017 13:48:47 +0200 Subject: [PATCH] Fixed /W4 warnings --- test/core/core_func_integer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/core/core_func_integer.cpp b/test/core/core_func_integer.cpp index 8e867dae..688e8ba0 100644 --- a/test/core/core_func_integer.cpp +++ b/test/core/core_func_integer.cpp @@ -488,23 +488,23 @@ namespace bitfieldReverse std::clock_t Timestamps0 = std::clock(); - for(glm::uint32 k = 0; k < Count; ++k) - Data[k] = glm::bitfieldReverse(k); + for(glm::uint64 k = 0; k < Count; ++k) + Data[static_cast(k)] = glm::bitfieldReverse(k); std::clock_t Timestamps1 = std::clock(); for(glm::uint64 k = 0; k < Count; ++k) - Data[k] = bitfieldReverseLoop(k); + Data[static_cast(k)] = bitfieldReverseLoop(k); std::clock_t Timestamps2 = std::clock(); for(glm::uint64 k = 0; k < Count; ++k) - Data[k] = bitfieldReverseUint64(k); + Data[static_cast(k)] = bitfieldReverseUint64(k); std::clock_t Timestamps3 = std::clock(); for(glm::uint64 k = 0; k < Count; ++k) - Data[k] = bitfieldReverseOps(k); + Data[static_cast(k)] = bitfieldReverseOps(k); std::clock_t Timestamps4 = std::clock();