mirror of
https://github.com/icaven/glm.git
synced 2025-12-07 17:26:50 +08:00
Checking if either argument is nan in fmin and fmax
This commit is contained in:
parent
d550798ca0
commit
d75ef41bdb
@ -146,8 +146,8 @@ namespace glm
|
||||
{
|
||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'fmin' only accept floating-point input");
|
||||
|
||||
if (isnan(y))
|
||||
return x;
|
||||
if (isnan(x))
|
||||
return y;
|
||||
if (isnan(y))
|
||||
return x;
|
||||
|
||||
@ -176,8 +176,8 @@ namespace glm
|
||||
{
|
||||
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'fmax' only accept floating-point input");
|
||||
|
||||
if (isnan(y))
|
||||
return x;
|
||||
if (isnan(x))
|
||||
return y;
|
||||
if (isnan(y))
|
||||
return x;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user