From: Frank M. Kromann Date: Wed, 8 May 2002 03:56:43 +0000 (+0000) Subject: Kill a compiler warning on Win32 X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c75e794ebe9563653de81cdbc4cf6c835d1f6b49;p=php Kill a compiler warning on Win32 --- diff --git a/ext/standard/php_smart_str.h b/ext/standard/php_smart_str.h index c0c2e770bb..d05e615fe7 100644 --- a/ext/standard/php_smart_str.h +++ b/ext/standard/php_smart_str.h @@ -84,7 +84,7 @@ static inline char *smart_str_print_unsigned(char *buf, unsigned long num) *p = '\0'; do { - *--p = (num % 10) + '0'; + *--p = (char)(num % 10) + '0'; num /= 10; } while (num > 0);