From 23b17ca0829a86d6a116dd85dfae9bf76858daec Mon Sep 17 00:00:00 2001 From: Ilya Yaroshenko Date: Thu, 5 Feb 2015 00:46:51 +0300 Subject: [PATCH] fix unittest For future `double` and `float` versions of `log2`. --- std/math.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/math.d b/std/math.d index 9156ef8a0..bad7b54d8 100644 --- a/std/math.d +++ b/std/math.d @@ -3009,7 +3009,7 @@ real log2(real x) @safe pure nothrow @nogc unittest { // check if values are equal to 19 decimal digits of precision - assert(equalsDigit(log2(1024), 10, 19)); + assert(equalsDigit(log2(1024.0L), 10, 19)); } /*****************************************