summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2017-11-17 17:51:06 +0100
committerEugen Wissner <belka@caraus.de>2017-11-19 22:37:15 +0100
commitac317aa9d62792e24feb3f094aa427935e3addf8 (patch)
treee17d86a6029bd65f58a1da6e7588783299d7ef2b
parent10022d158c9bd0e77387ba77b9ddace91e93dbcf (diff)
downloadtanya-ac317aa9d62792e24feb3f094aa427935e3addf8.tar.gz
math.min: Drop useless second isFloatingPoint check
-rw-r--r--source/tanya/math/mp.d2
-rw-r--r--source/tanya/math/package.d4
-rw-r--r--source/tanya/memory/smartref.d4
3 files changed, 5 insertions, 5 deletions
diff --git a/source/tanya/math/mp.d b/source/tanya/math/mp.d
index 59c2baf..a045b25 100644
--- a/source/tanya/math/mp.d
+++ b/source/tanya/math/mp.d
@@ -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;
diff --git a/source/tanya/math/package.d b/source/tanya/math/package.d
index a78504d..d52cbbb 100644
--- a/source/tanya/math/package.d
+++ b/source/tanya/math/package.d
@@ -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))
{
diff --git a/source/tanya/memory/smartref.d b/source/tanya/memory/smartref.d
index 25a16d3..30c60e0 100644
--- a/source/tanya/memory/smartref.d
+++ b/source/tanya/memory/smartref.d
@@ -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
{