Avoid duplicated width filling for sprintf %d specifier; fix #3736

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-07-14 15:21:11 +09:00
parent de3edcc170
commit 1c02b8558f
+1
View File
@@ -958,6 +958,7 @@ retry:
if (!(flags&FMINUS) && width > 0) {
FILL(' ', width);
width = 0;
}
if (sc) PUSH(&sc, 1);