]> granicus.if.org Git - php/commitdiff
fix datatype mismatches
authorAnatol Belski <ab@php.net>
Tue, 18 Nov 2014 11:11:25 +0000 (12:11 +0100)
committerAnatol Belski <ab@php.net>
Tue, 18 Nov 2014 12:19:51 +0000 (13:19 +0100)
main/snprintf.c

index 826880f62ab86117de0773f2967a5f345cb8322e..0b9182b6145912646fcdd5b7deb7b12903711f28 100644 (file)
@@ -1241,7 +1241,7 @@ static void strx_printv(int *ccp, char *buf, size_t len, const char *format, va_
 
 PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) /* {{{ */
 {
-       unsigned int cc;
+       int cc;
        va_list ap;
 
        va_start(ap, format);
@@ -1257,7 +1257,7 @@ PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) /* {{{
 
 PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap) /* {{{ */
 {
-       unsigned int cc;
+       int cc;
 
        strx_printv(&cc, buf, len, format, ap);
        if (cc >= len) {