From b65799a8e7f815aa7c05ee8adfc25e4c9a6fb32b Mon Sep 17 00:00:00 2001 From: Mathias LANG Date: Mon, 27 Jul 2020 00:16:02 +0900 Subject: [PATCH] Revert "EASY: Companion to https://github.com/dlang/druntime/pull/3167/" --- std/utf.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/utf.d b/std/utf.d index 2c44e5bbe..1dea9f772 100644 --- a/std/utf.d +++ b/std/utf.d @@ -107,7 +107,7 @@ class UTFException : UnicodeException size_t line = __LINE__, Throwable next = null) @safe pure nothrow { UnsignedStringBuf buf = void; - msg ~= " (at index " ~ unsignedToTempString(index, buf) ~ ")"; + msg ~= " (at index " ~ unsignedToTempString(index, buf, 10) ~ ")"; super(msg, index, file, line, next); } @@ -133,7 +133,7 @@ class UTFException : UnicodeException { UnsignedStringBuf buf = void; result ~= ' '; - auto h = unsignedToTempString!16(i, buf); + auto h = unsignedToTempString(i, buf, 16); if (h.length == 1) result ~= '0'; result ~= h;