`print("%d", 0)` should not print `-0`; fix #3731

parent 2ef5d22b
......@@ -847,7 +847,7 @@ retry:
}
if (sign) {
if (v > 0) {
if (v >= 0) {
if (flags & FPLUS) {
sc = '+';
width--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment