]> granicus.if.org Git - php/commitdiff
remove unnecessary casts
authorSascha Schumann <sas@php.net>
Mon, 22 Apr 2002 20:42:01 +0000 (20:42 +0000)
committerSascha Schumann <sas@php.net>
Mon, 22 Apr 2002 20:42:01 +0000 (20:42 +0000)
# if you mind the bogus warnings, you can either switch the compiler
# or decrease the warning level

ext/standard/php_smart_str.h

index d05e615fe780dcc33498a7fb60ce3835269b31a0..c0c2e770bb768a6408f611d347e98974988bd463 100644 (file)
@@ -84,7 +84,7 @@ static inline char *smart_str_print_unsigned(char *buf, unsigned long num)
        
        *p = '\0';
        do {
-               *--p = (char)(num % 10) + '0';
+               *--p = (num % 10) + '0';
                num /= 10;
        } while (num > 0);