diff --git a/test/core/core_func_integer.cpp b/test/core/core_func_integer.cpp index e7b2da189..f7988afbd 100644 --- a/test/core/core_func_integer.cpp +++ b/test/core/core_func_integer.cpp @@ -1426,7 +1426,7 @@ namespace bitCount template static glm::vec bitCount_bitfield(glm::vec const& v) { - glm::vec::type, Q> x(*reinterpret_cast::type, Q> const *>(&v)); + glm::vec::type, Q> x(v); x = compute_bitfieldBitCountStep= 2>::call(x, static_cast::type>(0x5555555555555555ull), static_cast::type>( 1)); x = compute_bitfieldBitCountStep= 4>::call(x, static_cast::type>(0x3333333333333333ull), static_cast::type>( 2)); x = compute_bitfieldBitCountStep= 8>::call(x, static_cast::type>(0x0F0F0F0F0F0F0F0Full), static_cast::type>( 4)); @@ -1512,7 +1512,7 @@ namespace bitCount int ResultA = glm::bitCount(DataI32[i].Value); Error += DataI32[i].Return == ResultA ? 0 : 1; assert(!Error); -/* + int ResultB = bitCount_if(DataI32[i].Value); Error += DataI32[i].Return == ResultB ? 0 : 1; assert(!Error); @@ -1524,7 +1524,6 @@ namespace bitCount int ResultE = bitCount_bitfield(DataI32[i].Value); Error += DataI32[i].Return == ResultE ? 0 : 1; assert(!Error); -*/ } return Error;