Fix int sign comparison warning.

This commit is contained in:
Relintai 2022-08-23 00:45:20 +02:00
parent b0da59764d
commit 06e040120a

View File

@ -363,8 +363,9 @@ int HTTPParser::on_headers_complete() {
return 0; return 0;
} }
int HTTPParser::on_body(const char *at, size_t length) { int HTTPParser::on_body(const char *at, size_t p_length) {
ERR_FAIL_COND_V(!_request.is_valid(), 0); ERR_FAIL_COND_V(!_request.is_valid(), 0);
int length = static_cast<int>(p_length);
if (_content_type == REQUEST_CONTENT_MULTIPART_FORM_DATA) { if (_content_type == REQUEST_CONTENT_MULTIPART_FORM_DATA) {
int wofs = _queued_multipart_form_data.size(); int wofs = _queued_multipart_form_data.size();