From: Anatol Belski Date: Mon, 27 Oct 2014 16:02:52 +0000 (+0100) Subject: fix datatype mismatches X-Git-Tag: PRE_PHP7_REMOVALS~87^2~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=868dbf609bfd5eb72f55b2e26ed7a0231b10a647;p=php fix datatype mismatches --- diff --git a/main/snprintf.c b/main/snprintf.c index b9f781346c..826880f62a 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -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;