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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-07-05 22:21:12 +09:00
parent 2ef5d22b60
commit cc04f03393
+1 -1
View File
@@ -847,7 +847,7 @@ retry:
}
if (sign) {
if (v > 0) {
if (v >= 0) {
if (flags & FPLUS) {
sc = '+';
width--;