From f2fc1bdb3357b0501ee3277a84d80efe2ece5f2d Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 30 Dec 2014 00:16:21 -0800 Subject: Make the code lesss suspicious (can't be really 0 but it's not obvious) --- ext/standard/formatted_print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/standard/formatted_print.c') 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 | + | Author: Stig S�ther Bakken | +----------------------------------------------------------------------+ */ @@ -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) { -- cgit v1.2.1