mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make String(0) actually print '0' rather than nothing ;)
Swift SVN r1612
This commit is contained in:
@@ -464,7 +464,7 @@ extern "C" char *_TNSs6String6StringFT1vNSs6Int128_S_(__int128_t X) {
|
||||
bool WasNeg = X < 0;
|
||||
__uint128_t Y = WasNeg ? -X : X;
|
||||
|
||||
if (Y == 0) *--P = 0; // Special case.
|
||||
if (Y == 0) *--P = '0'; // Special case.
|
||||
|
||||
while (Y) {
|
||||
*--P = '0' + char(Y % 10);
|
||||
|
||||
Reference in New Issue
Block a user