math.min: Drop useless second isFloatingPoint check

This commit is contained in:
2017-11-17 17:51:06 +01:00
parent 10022d158c
commit ac317aa9d6
3 changed files with 5 additions and 5 deletions

View File

@ -768,7 +768,7 @@ if (isIntegral!T)
/// ditto
T min(T)(T x, T y)
if (isFloatingPoint!T && isFloatingPoint!T)
if (isFloatingPoint!T)
{
if (isNaN(x))
{
@ -838,7 +838,7 @@ if (isIntegral!T)
/// ditto
T max(T)(T x, T y)
if (isFloatingPoint!T && isFloatingPoint!T)
if (isFloatingPoint!T)
{
if (isNaN(x))
{