From 4fb90c780f2a342d441de77f87beeebb73d4c87b Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Tue, 12 May 2015 20:39:46 +0200 Subject: [PATCH] Fix bad usage of int *= float: generate a const shift by other means --- test/runnable/test42.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runnable/test42.d b/test/runnable/test42.d index c975bd60f8ef..42ea960cc640 100644 --- a/test/runnable/test42.d +++ b/test/runnable/test42.d @@ -4582,11 +4582,11 @@ void test7212() void test242() { - foreach(v; long.max / 4 .. long.max / 4 + 1) + foreach(v; long.max / 8 .. long.max / 8 + 1) { immutable long t1 = v; long t2 = t1 + t1; - t2 *= 1.0; + t2 *= 1L << 1; assert(t2 > long.max / 4); } }