X-Git-Url: https://git.llucax.com/software/druntime.git/blobdiff_plain/e73fd0621e85e8fa881186a4b3777c04b1d1adea..HEAD:/src/compiler/dmd/util/utf.d?ds=sidebyside diff --git a/src/compiler/dmd/util/utf.d b/src/compiler/dmd/util/utf.d index 012d7c3..552ab34 100644 --- a/src/compiler/dmd/util/utf.d +++ b/src/compiler/dmd/util/utf.d @@ -334,7 +334,7 @@ unittest assert(i == 3); static s4 = - [ "\xE2\x89"c, // too short + [ "\xE2\x89"c[], // too short "\xC0\x8A", "\xE0\x80\x8A", "\xF0\x80\x80\x8A", @@ -863,7 +863,7 @@ unittest { debug(utf) printf("utf.toUTF.unittest\n"); - auto c = "hello"c; + auto c = "hello"c[]; auto w = toUTF16(c); assert(w == "hello"); auto d = toUTF32(c);