Fixed warning about slice assignment
This commit is contained in:
parent
593eaaed74
commit
da64d9e5c2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue