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;