math.min: Drop useless second isFloatingPoint check

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

View File

@ -15,7 +15,7 @@
module tanya.math.mp;
import std.algorithm.comparison;
import std.algorithm.mutation : fill, copy, reverse;
import std.algorithm.mutation : copy, fill, reverse;
import std.range;
import tanya.algorithm.mutation;
import tanya.container.array;

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))
{

View File

@ -611,7 +611,7 @@ body
@nogc @system unittest
{
static bool destroyed = false;
static bool destroyed;
static struct F
{
@ -812,7 +812,7 @@ struct Unique(T)
///
@nogc nothrow @system unittest
{
static bool destroyed = false;
static bool destroyed;
static struct F
{