ares-test: silence warning (#564)

warning: comparison of integer expressions of different signedness

Fix By: Daniel Stenberg (@bagder)
pull/565/head cares-1_20_1
Daniel Stenberg 2 years ago committed by GitHub
parent adc9ff0acd
commit e8fe27eaa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      test/ares-test.cc

@ -384,7 +384,7 @@ void MockServer::ProcessFD(int fd) {
/* TCP might aggregate the various requests into a single packet, so we
* need to split */
while (tcp_data_len_ > 2) {
int tcplen = (tcp_data_[0] << 8) + tcp_data_[1];
size_t tcplen = (tcp_data_[0] << 8) + tcp_data_[1];
if (tcp_data_len_ - 2 < tcplen)
break;

Loading…
Cancel
Save