Fixed an extra padding character in the negative integer formatting (#2443)
* Fixed an extra padding character in the negative integer formatting * Add test script * Add more test cases
This commit is contained in:
@@ -492,6 +492,7 @@ void AddInt(char **buf_p, size_t &maxlen, int64_t val, int width, int flags)
|
||||
if (val < 0)
|
||||
{
|
||||
unsignedVal = 0 - static_cast<uint64_t>(val);
|
||||
width--; // Reserved for '-' sign
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user