From dfe15ad070efde477d39babc92ca2f8903daaf79 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Thu, 19 Jul 2001 08:12:12 +0000 Subject: [PATCH] Fix warnings --- ext/standard/formatted_print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.50.1