Skip to content

Commit

Permalink
Fixed atanh warning #484
Browse files Browse the repository at this point in the history
  • Loading branch information
Groovounet committed Feb 21, 2016
1 parent 0d48c43 commit 045aa8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glm/detail/func_trigonometric.inl
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ namespace glm
{
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'atanh' only accept floating-point input");

if(abs(x) >= static_cast<genType>(1))
if(std::abs(x) >= static_cast<genType>(1))
return 0;
return static_cast<genType>(0.5) * log((static_cast<genType>(1) + x) / (static_cast<genType>(1) - x));
}
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate)
#### [GLM 0.9.7.4](https:/g-truc/glm/tree/0.9.7) - 2016-XX-XX
##### Fixes:
- Fixed asinh warning with C++98 STL #484
- Fixed asinh and atanh warning with C++98 STL #484
#### [GLM 0.9.7.3](https:/g-truc/glm/releases/tag/0.9.7.3) - 2016-02-21
##### Improvements:
Expand Down

0 comments on commit 045aa8e

Please sign in to comment.