diff --git a/std/encoding.d b/std/encoding.d index 9334f3183..c7c161e7d 100644 --- a/std/encoding.d +++ b/std/encoding.d @@ -1879,7 +1879,7 @@ immutable(E)[] sanitize(E)(immutable(E)[] s) offset += n; t = t[n..$]; } - return cast(immutable(E)[])array[0 .. offset]; + return array[0 .. offset]; } ///