浏览代码

Fixed warnings, ticket #79

Christophe Riccio 14 年之前
父节点
当前提交
b4848bb3e1
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      glm/gtx/compatibility.inl

+ 3 - 3
glm/gtx/compatibility.inl

@@ -19,7 +19,7 @@ inline bool isfinite(
 #if(GLM_COMPILER & GLM_COMPILER_VC)
 	return _finite(x);
 #else//(GLM_COMPILER & GLM_COMPILER_GCC)
-	return std::isfinite(x);
+	return std::isfinite(x) != 0;
 #endif
 }
 
@@ -61,7 +61,7 @@ inline bool isinf(
 #if(GLM_COMPILER & GLM_COMPILER_VC)
 	return _fpclass(x) == _FPCLASS_NINF || _fpclass(x) == _FPCLASS_PINF;
 #else
-	return std::isinf(x);
+	return std::isinf(x) != 0;
 #endif
 }
 
@@ -102,7 +102,7 @@ inline bool isnan(genType const & x)
 #if(GLM_COMPILER & GLM_COMPILER_VC)
 	return _isnan(x);
 #else
-	return std::isnan(x);
+	return std::isnan(x) != 0;
 #endif
 }