summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-27 17:02:52 +0100
committerAnatol Belski <ab@php.net>2014-10-27 17:02:52 +0100
commit868dbf609bfd5eb72f55b2e26ed7a0231b10a647 (patch)
treeaf41647c681f9f7f17bb2c3e0cf4f776cdda7270
parent52bd403d0ba3b46830cce2891e5dc0ac3ba46467 (diff)
downloadphp-git-868dbf609bfd5eb72f55b2e26ed7a0231b10a647.tar.gz
fix datatype mismatches
-rw-r--r--main/snprintf.c4
1 files changed, 2 insertions, 2 deletions
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;