소스 검색

Uses a C++ cast instead of a C cast

Christophe Riccio 12 년 전
부모
커밋
e13e147799
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      glm/core/func_exponential.inl

+ 1 - 1
glm/core/func_exponential.inl

@@ -93,7 +93,7 @@ namespace glm
 			std::numeric_limits<genType>::is_iec559,
 			std::numeric_limits<genType>::is_iec559,
 			"'exp2' only accept floating-point inputs");
 			"'exp2' only accept floating-point inputs");
 
 
-		return std::exp(genType(0.69314718055994530941723212145818) * x);
+		return std::exp(static_cast<genType>(0.69314718055994530941723212145818) * x);
 	}
 	}
 
 
 	VECTORIZE_VEC(exp2)
 	VECTORIZE_VEC(exp2)