Fixed warning about slice assignment

This commit is contained in:
John-Colvin 2013-03-23 16:31:14 +00:00
parent 593eaaed74
commit da64d9e5c2

View file

@ -302,7 +302,7 @@ final class Reader
try for(size_t c = 0; chars && !decoder_.done;) try for(size_t c = 0; chars && !decoder_.done;)
{ {
const slice = decoder_.getDChars(chars); const slice = decoder_.getDChars(chars);
buffer_[oldLength + c .. oldLength + c + slice.length] = slice; buffer_[oldLength + c .. oldLength + c + slice.length] = slice[];
c += slice.length; c += slice.length;
chars -= slice.length; chars -= slice.length;
} }