com php-src: fix datatype mismatches: main/snprintf.c

From: Date: Mon, 27 Oct 2014 16:02:52 +0000
Subject: com php-src: fix datatype mismatches: main/snprintf.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82705@lists.php.net to get a copy of this message
Commit: 868dbf609bfd5eb72f55b2e26ed7a0231b10a647 Author: Anatol Belski <ab@php.net> Mon, 27 Oct 2014 17:02:52 +0100 Parents: 52bd403d0ba3b46830cce2891e5dc0ac3ba46467 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=868dbf609bfd5eb72f55b2e26ed7a0231b10a647 Log: fix datatype mismatches Changed paths: M main/snprintf.c Diff: diff --git a/main/snprintf.c b/main/snprintf.c index b9f7813..826880f 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;

« previous php.cvs (#82705) next »