From da64d9e5c26168c93fe17bfb8ae443dcc192e787 Mon Sep 17 00:00:00 2001 From: John-Colvin Date: Sat, 23 Mar 2013 16:31:14 +0000 Subject: [PATCH] Fixed warning about slice assignment --- dyaml/reader.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyaml/reader.d b/dyaml/reader.d index 22f9238..6ae638e 100644 --- a/dyaml/reader.d +++ b/dyaml/reader.d @@ -302,7 +302,7 @@ final class Reader try for(size_t c = 0; chars && !decoder_.done;) { const slice = decoder_.getDChars(chars); - buffer_[oldLength + c .. oldLength + c + slice.length] = slice; + buffer_[oldLength + c .. oldLength + c + slice.length] = slice[]; c += slice.length; chars -= slice.length; }