Skip to content

Commit

Permalink
gni
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-lunarg committed Jan 16, 2024
1 parent e99f8e6 commit 473b297
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/core/core_force_pure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ static int test_bvec4_ctor()
glm::bvec4 const E = A && C;
glm::bvec4 const F = A || C;

Error += D == glm::bvec4(true) ? 0 : 1;
Error += E == glm::bvec4(false) ? 0 : 1;
Error += F == glm::bvec4(true) ? 0 : 1;
Error += (D == glm::bvec4(true)) ? 0 : 1;
Error += (E == glm::bvec4(false)) ? 0 : 1;
Error += (F == glm::bvec4(true)) ? 0 : 1;

bool const G = A == C;
bool const H = A != C;
Expand Down Expand Up @@ -315,15 +315,15 @@ static int test_vec4_equal()
{
glm::uvec4 const A(1, 2, 3, 4);
glm::uvec4 const B(1, 2, 3, 4);
Error += A == B ? 0 : 1;
Error += A != B ? 1 : 0;
Error += (A == B) ? 0 : 1;
Error += (A != B) ? 1 : 0;
}

{
glm::ivec4 const A(1, 2, 3, 4);
glm::ivec4 const B(1, 2, 3, 4);
Error += A == B ? 0 : 1;
Error += A != B ? 1 : 0;
Error += (A == B) ? 0 : 1;
Error += (A != B) ? 1 : 0;
}

return Error;
Expand Down

0 comments on commit 473b297

Please sign in to comment.