修复编译警告

This commit is contained in:
ziyue 2022-01-24 10:48:15 +08:00
parent 131476d3ac
commit 80ecd2098e

View File

@ -327,7 +327,7 @@ void HttpClient::onResponseCompleted_l(const SockException &ex) {
}
//可疑的失败
if (_total_body_size > 0 && _recved_body_size >= _total_body_size) {
if (_total_body_size > 0 && _recved_body_size >= (size_t)_total_body_size) {
//回复header中有content-length信息那么收到的body大于等于声明值则认为成功
onResponseCompleted(SockException(Err_success, "success"));
return;