]> granicus.if.org Git - php/commitdiff
fixes a warning when compiling under win32
authorHarald Radi <phanto@php.net>
Mon, 22 Apr 2002 18:02:01 +0000 (18:02 +0000)
committerHarald Radi <phanto@php.net>
Mon, 22 Apr 2002 18:02:01 +0000 (18:02 +0000)
ext/standard/php_smart_str.h

index c0c2e770bb768a6408f611d347e98974988bd463..d05e615fe780dcc33498a7fb60ce3835269b31a0 100644 (file)
@@ -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);