mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Fixed int used instead of glm::length_t
This commit is contained in:
parent
db09ecfc41
commit
efd4087b1c
@ -255,7 +255,7 @@ namespace glm
|
||||
GLM_FUNC_QUALIFIER vecType<T, P> next_float(vecType<T, P> const & x, vecType<uint, P> const & ulps)
|
||||
{
|
||||
vecType<T, P> Result;
|
||||
for(uint i = 0; i < Result.length(); ++i)
|
||||
for(length_t i = 0; i < Result.length(); ++i)
|
||||
Result[i] = next_float(x[i], ulps[i]);
|
||||
return Result;
|
||||
}
|
||||
|
@ -72,10 +72,10 @@ int test_ctr()
|
||||
{0, 1},
|
||||
{2, 3}};
|
||||
|
||||
for(int i = 0; i < m0.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m0.length(); ++i)
|
||||
Error += glm::all(glm::equal(m0[i], m2[i])) ? 0 : 1;
|
||||
|
||||
for(int i = 0; i < m1.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m1.length(); ++i)
|
||||
Error += glm::all(glm::equal(m1[i], m2[i])) ? 0 : 1;
|
||||
|
||||
std::vector<glm::mat2x2> v1{
|
||||
|
@ -46,10 +46,10 @@ int test_ctr()
|
||||
{0, 1, 2},
|
||||
{3, 4, 5}};
|
||||
|
||||
for(int i = 0; i < m0.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m0.length(); ++i)
|
||||
Error += glm::all(glm::equal(m0[i], m2[i])) ? 0 : 1;
|
||||
|
||||
for(int i = 0; i < m1.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m1.length(); ++i)
|
||||
Error += glm::all(glm::equal(m1[i], m2[i])) ? 0 : 1;
|
||||
|
||||
std::vector<glm::mat2x3> v1{
|
||||
|
@ -46,10 +46,10 @@ int test_ctr()
|
||||
{0, 1, 2, 3},
|
||||
{4, 5, 6, 7}};
|
||||
|
||||
for(int i = 0; i < m0.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m0.length(); ++i)
|
||||
Error += glm::all(glm::equal(m0[i], m2[i])) ? 0 : 1;
|
||||
|
||||
for(int i = 0; i < m1.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m1.length(); ++i)
|
||||
Error += glm::all(glm::equal(m1[i], m2[i])) ? 0 : 1;
|
||||
|
||||
std::vector<glm::mat2x4> v1{
|
||||
|
@ -48,10 +48,10 @@ int test_ctr()
|
||||
{2, 3},
|
||||
{4, 5}};
|
||||
|
||||
for(int i = 0; i < m0.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m0.length(); ++i)
|
||||
Error += glm::all(glm::equal(m0[i], m2[i])) ? 0 : 1;
|
||||
|
||||
for(int i = 0; i < m1.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m1.length(); ++i)
|
||||
Error += glm::all(glm::equal(m1[i], m2[i])) ? 0 : 1;
|
||||
|
||||
std::vector<glm::mat3x2> v1{
|
||||
|
@ -107,10 +107,10 @@ int test_ctr()
|
||||
{3, 4, 5},
|
||||
{6, 7, 8}};
|
||||
|
||||
for(int i = 0; i < m0.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m0.length(); ++i)
|
||||
Error += glm::all(glm::equal(m0[i], m2[i])) ? 0 : 1;
|
||||
|
||||
for(int i = 0; i < m1.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m1.length(); ++i)
|
||||
Error += glm::all(glm::equal(m1[i], m2[i])) ? 0 : 1;
|
||||
|
||||
std::vector<glm::mat3x3> v1{
|
||||
|
@ -48,10 +48,10 @@ int test_ctr()
|
||||
{4, 5, 6, 7},
|
||||
{8, 9, 10, 11}};
|
||||
|
||||
for(int i = 0; i < m0.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m0.length(); ++i)
|
||||
Error += glm::all(glm::equal(m0[i], m2[i])) ? 0 : 1;
|
||||
|
||||
for(int i = 0; i < m1.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m1.length(); ++i)
|
||||
Error += glm::all(glm::equal(m1[i], m2[i])) ? 0 : 1;
|
||||
|
||||
std::vector<glm::mat3x4> v1{
|
||||
|
@ -50,10 +50,10 @@ int test_ctr()
|
||||
{4, 5},
|
||||
{6, 7}};
|
||||
|
||||
for(int i = 0; i < m0.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m0.length(); ++i)
|
||||
Error += glm::all(glm::equal(m0[i], m2[i])) ? 0 : 1;
|
||||
|
||||
for(int i = 0; i < m1.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m1.length(); ++i)
|
||||
Error += glm::all(glm::equal(m1[i], m2[i])) ? 0 : 1;
|
||||
|
||||
std::vector<glm::mat4x2> v1{
|
||||
|
@ -50,10 +50,10 @@ int test_ctr()
|
||||
{6, 7, 8},
|
||||
{9, 10, 11}};
|
||||
|
||||
for(int i = 0; i < m0.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m0.length(); ++i)
|
||||
Error += glm::all(glm::equal(m0[i], m2[i])) ? 0 : 1;
|
||||
|
||||
for(int i = 0; i < m1.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m1.length(); ++i)
|
||||
Error += glm::all(glm::equal(m1[i], m2[i])) ? 0 : 1;
|
||||
|
||||
std::vector<glm::mat4x3> v1{
|
||||
|
@ -208,10 +208,10 @@ int test_ctr()
|
||||
{8, 9, 10, 11},
|
||||
{12, 13, 14, 15}};
|
||||
|
||||
for(int i = 0; i < m0.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m0.length(); ++i)
|
||||
Error += glm::all(glm::equal(m0[i], m2[i])) ? 0 : 1;
|
||||
|
||||
for(int i = 0; i < m1.length(); ++i)
|
||||
for(glm::length_t i = 0; i < m1.length(); ++i)
|
||||
Error += glm::all(glm::equal(m1[i], m2[i])) ? 0 : 1;
|
||||
|
||||
std::vector<glm::mat4> m3{
|
||||
|
Loading…
Reference in New Issue
Block a user