From 253be45581567c9108f9d2d686850c8862ab6168 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 27 Jun 2026 14:28:07 +1000 Subject: [PATCH] another fix --- dlib/alloc.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/alloc.d b/dlib/alloc.d index 38af745..47efc90 100644 --- a/dlib/alloc.d +++ b/dlib/alloc.d @@ -146,7 +146,7 @@ string AllocTerminated(T)(T target) if(StringType!T) { u8[] str = Alloc!(u8)(target.length+1); - str[0 .. target.length] = str[]; + str[0 .. target.length] = cast(u8[])target[]; str[str.length-1] = '\0'; return cast(string)str[0 .. str.length-1]; }