From fffb5555e6b95cda3b71e2c28fc78f679021ba8c Mon Sep 17 00:00:00 2001 From: Andrei Alexandrescu Date: Thu, 10 Jun 2010 18:50:29 +0000 Subject: [PATCH] Fixed writeln() regression --- std/stdio.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/stdio.d b/std/stdio.d index a550465c9..6be3b54fb 100644 --- a/std/stdio.d +++ b/std/stdio.d @@ -1330,7 +1330,7 @@ void writeln(T...)(T args) if (T.length == 1 && is(typeof(args[0]) : const(char)[])) { enforce(fprintf(.stdout.p.handle, "%.*s\n", - args[0].length, args[0].ptr) >= 0); + cast(int) args[0].length, args[0].ptr) >= 0); } unittest