forked from icaven/glm
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed infinite loop in isfinite function with GCC #221
- Loading branch information
Christophe Riccio
committed
Aug 3, 2014
1 parent
d84fa89
commit 96ef6ae
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96ef6ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
genType
is a floating point type,std::numeric_limits<genType>::min()
is actually the smallest representable positive value (i.e.>0
) not the smallest representable value overall.See std::numeric_limits::min.