Browse Source

Fixed VC and C++98 warning

Groove 7 years ago
parent
commit
6f9a194c2c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/gtx/compatibility.inl

+ 1 - 1
glm/gtx/compatibility.inl

@@ -12,7 +12,7 @@ namespace glm
 #		if GLM_HAS_CXX11_STL
 #		if GLM_HAS_CXX11_STL
 			return std::isfinite(x) != 0;
 			return std::isfinite(x) != 0;
 #		elif GLM_COMPILER & GLM_COMPILER_VC
 #		elif GLM_COMPILER & GLM_COMPILER_VC
-			return _finite(x);
+			return _finite(x) != 0;
 #		elif GLM_COMPILER & GLM_COMPILER_GCC && GLM_PLATFORM & GLM_PLATFORM_ANDROID
 #		elif GLM_COMPILER & GLM_COMPILER_GCC && GLM_PLATFORM & GLM_PLATFORM_ANDROID
 			return _isfinite(x) != 0;
 			return _isfinite(x) != 0;
 #		else
 #		else