From: Stanislav Malyshev Date: Thu, 19 Jul 2001 08:12:12 +0000 (+0000) Subject: Fix warnings X-Git-Tag: PRE_TSRM_MERGE_PATCH~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfe15ad070efde477d39babc92ca2f8903daaf79;p=php Fix warnings --- diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index e4756cbade..f010c458f9 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -219,7 +219,7 @@ php_sprintf_appendint(char **buffer, int *pos, int *size, long number, do { nmagn = magn / 10; - numbuf[--i] = (magn - (nmagn * 10)) + '0'; + numbuf[--i] = (unsigned char)(magn - (nmagn * 10)) + '0'; magn = nmagn; } while (magn > 0 && i > 0); @@ -254,7 +254,7 @@ php_sprintf_appenduint(char **buffer, int *pos, int *size, do { nmagn = magn / 10; - numbuf[--i] = (magn - (nmagn * 10)) + '0'; + numbuf[--i] = (unsigned char)(magn - (nmagn * 10)) + '0'; magn = nmagn; } while (magn > 0 && i > 0);