Skip to content

Commit 868dbf6

Browse files
committed
fix datatype mismatches
1 parent 52bd403 commit 868dbf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/snprintf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) /* {{{
12481248
strx_printv(&cc, buf, len, format, ap);
12491249
va_end(ap);
12501250
if (cc >= len) {
1251-
cc = len -1;
1251+
cc = (int)len -1;
12521252
buf[cc] = '\0';
12531253
}
12541254
return cc;
@@ -1261,7 +1261,7 @@ PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list a
12611261

12621262
strx_printv(&cc, buf, len, format, ap);
12631263
if (cc >= len) {
1264-
cc = len -1;
1264+
cc = (int)len -1;
12651265
buf[cc] = '\0';
12661266
}
12671267
return cc;

0 commit comments

Comments
 (0)