Skip to content

Commit f2fc1bd

Browse files
committed
Make the code lesss suspicious (can't be really 0 but it's not obvious)
1 parent 949ffc0 commit f2fc1bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/formatted_print.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| obtain it through the world-wide-web, please send a note to |
1313
| [email protected] so we can mail you a copy immediately. |
1414
+----------------------------------------------------------------------+
15-
| Author: Stig Sæther Bakken <[email protected]> |
15+
| Author: Stig S�ther Bakken <[email protected]> |
1616
+----------------------------------------------------------------------+
1717
*/
1818

@@ -155,7 +155,7 @@ php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number,
155155
numbuf[--i] = (unsigned char)(magn - (nmagn * 10)) + '0';
156156
magn = nmagn;
157157
}
158-
while (magn > 0 && i > 0);
158+
while (magn > 0 && i > 1);
159159
if (neg) {
160160
numbuf[--i] = '-';
161161
} else if (always_sign) {

0 commit comments

Comments
 (0)