This commit is contained in:
Mathias LANG 2020-07-27 00:16:02 +09:00
parent 2f18e0d0c1
commit b65799a8e7

View file

@ -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;