mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Uses a C++ cast instead of a C cast
This commit is contained in:
parent
d3b8b25dd4
commit
e13e147799
@ -93,7 +93,7 @@ namespace glm
|
||||
std::numeric_limits<genType>::is_iec559,
|
||||
"'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)
|
||||
|
Loading…
Reference in New Issue
Block a user