Skip to content

Commit 502c74b

Browse files
denizzzkathewilsonator
authored andcommitted
unsignedToTempString() will accept only unsigned it the future
1 parent 55bfa46 commit 502c74b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

std/conv.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5585,7 +5585,7 @@ if (isIntegral!T && isOutputRange!(W, char))
55855585
else
55865586
{
55875587
UnsignedStringBuf buf = void;
5588-
put(writer, unsignedToTempString(value, buf));
5588+
put(writer, unsignedToTempString(value.unsigned, buf));
55895589
}
55905590
}
55915591

@@ -6108,7 +6108,7 @@ if ((radix == 2 || radix == 8 || radix == 10 || radix == 16) &&
61086108

61096109
char[] t = value < 0
61106110
? signedToTempString!(10, false, char)(value, buf)
6111-
: unsignedToTempString!(10, false, char)(value, buf);
6111+
: unsignedToTempString!(10, false, char)(value.unsigned, buf);
61126112

61136113
lwr = cast(uint) (buf.length - t.length);
61146114
upr = cast(uint) buf.length;

0 commit comments

Comments
 (0)