Browse Source

Fixed VC warning

Christophe Riccio 13 years ago
parent
commit
ac0c938442
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/core/func_common.inl

+ 1 - 1
glm/core/func_common.inl

@@ -809,7 +809,7 @@ namespace detail
 		GLM_STATIC_ASSERT(detail::type<genType>::is_float, "'isnan' only accept floating-point inputs");
 
 #       if(GLM_COMPILER & GLM_COMPILER_VC)
-            return _isnan(x);
+            return _isnan(x) != 0;
 #       elif(GLM_COMPILER & GLM_COMPILER_GCC)
 #           if(GLM_PLATFORM & GLM_PLATFORM_ANDROID)
                 return _isnan(x) != 0;