From e1f44ea397a24b5cecee01cf955a056aebba4096 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Thu, 16 Aug 2018 19:52:15 +0200 Subject: [PATCH] Fixed clang warning --- test/ext/ext_scalar_common.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/ext/ext_scalar_common.cpp b/test/ext/ext_scalar_common.cpp index 1db28707..0bd6bc32 100644 --- a/test/ext/ext_scalar_common.cpp +++ b/test/ext/ext_scalar_common.cpp @@ -45,7 +45,7 @@ static int test_min_nan() T const A = static_cast(0); T const B = static_cast(1); - T const N = GLM_NAN; + T const N = static_cast(GLM_NAN); Error += glm::isnan(glm::min(N, B)) ? 0 : 1; Error += !glm::isnan(glm::min(B, N)) ? 0 : 1; @@ -104,7 +104,7 @@ static int test_max_nan() T const A = static_cast(0); T const B = static_cast(1); - T const N = GLM_NAN; + T const N = static_cast(GLM_NAN); Error += glm::isnan(glm::max(N, B)) ? 0 : 1; Error += !glm::isnan(glm::max(B, N)) ? 0 : 1; @@ -134,7 +134,7 @@ static int test_fmin() T const A = static_cast(0); T const B = static_cast(1); - T const N = GLM_NAN; + T const N = static_cast(GLM_NAN); Error += glm::equal(glm::fmin(N, B), B, glm::epsilon()) ? 0 : 1; Error += glm::equal(glm::fmin(B, N), B, glm::epsilon()) ? 0 : 1; @@ -164,7 +164,7 @@ static int test_fmax() T const A = static_cast(0); T const B = static_cast(1); - T const N = GLM_NAN; + T const N = static_cast(GLM_NAN); Error += glm::equal(glm::fmax(N, B), B, glm::epsilon()) ? 0 : 1; Error += glm::equal(glm::fmax(B, N), B, glm::epsilon()) ? 0 : 1;