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:
F1F88
2026-04-25 13:30:09 +00:00
committed by GitHub
parent 81ebd8cf8d
commit 817696358b
2 changed files with 2328 additions and 0 deletions
+1
View File
@@ -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