]> granicus.if.org Git - php/commitdiff
fix datatype mismatches
authorAnatol Belski <ab@php.net>
Mon, 27 Oct 2014 16:02:52 +0000 (17:02 +0100)
committerAnatol Belski <ab@php.net>
Mon, 27 Oct 2014 16:02:52 +0000 (17:02 +0100)
main/snprintf.c

index b9f781346c8a29210b3516969cb5bd6c1159354c..826880f62ab86117de0773f2967a5f345cb8322e 100644 (file)
@@ -1248,7 +1248,7 @@ PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) /* {{{
        strx_printv(&cc, buf, len, format, ap);
        va_end(ap);
        if (cc >= len) {
-               cc = len -1;
+               cc = (int)len -1;
                buf[cc] = '\0';
        }
        return cc;
@@ -1261,7 +1261,7 @@ PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list a
 
        strx_printv(&cc, buf, len, format, ap);
        if (cc >= len) {
-               cc = len -1;
+               cc = (int)len -1;
                buf[cc] = '\0';
        }
        return cc;