Skip to content

Commit bb2fae1

Browse files
committed
ext/curl: Fix [-Wsign-compare] warning
1 parent b193b6e commit bb2fae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ static size_t curl_read(char *data, size_t size, size_t nmemb, void *ctx)
788788
if (!Z_ISUNDEF(retval)) {
789789
_php_curl_verify_handlers(ch, /* reporterror */ true);
790790
if (Z_TYPE(retval) == IS_STRING) {
791-
length = MIN((int) (size * nmemb), Z_STRLEN(retval));
791+
length = MIN((size * nmemb), Z_STRLEN(retval));
792792
memcpy(data, Z_STRVAL(retval), length);
793793
} else if (Z_TYPE(retval) == IS_LONG) {
794794
length = Z_LVAL_P(&retval);

0 commit comments

Comments
 (0)