diff options
author | Stanislav Malyshev <stas@php.net> | 2014-12-30 00:16:21 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2014-12-30 00:16:21 -0800 |
commit | f2fc1bdb3357b0501ee3277a84d80efe2ece5f2d (patch) | |
tree | 8b2542833de6ee76b8ef18a4772e333981a60f96 /ext/standard/formatted_print.c | |
parent | 949ffc0a8fa7e22d3f7ef05608047c0412f35337 (diff) | |
download | php-git-f2fc1bdb3357b0501ee3277a84d80efe2ece5f2d.tar.gz |
Make the code lesss suspicious (can't be really 0 but it's not obvious)
Diffstat (limited to 'ext/standard/formatted_print.c')
-rw-r--r-- | ext/standard/formatted_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index 26a2276fea..22fd1a8798 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -12,7 +12,7 @@ | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ - | Author: Stig Sæther Bakken <ssb@php.net> | + | Author: Stig S�ther Bakken <ssb@php.net> | +----------------------------------------------------------------------+ */ @@ -155,7 +155,7 @@ php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number, numbuf[--i] = (unsigned char)(magn - (nmagn * 10)) + '0'; magn = nmagn; } - while (magn > 0 && i > 0); + while (magn > 0 && i > 1); if (neg) { numbuf[--i] = '-'; } else if (always_sign) { |