Browse Source

SITL: fixed warning comparing signed vs unsigned

mission-4.1.18
Tom Pittenger 9 years ago
parent
commit
faa4238370
  1. 6
      libraries/SITL/SIM_FlightAxis.cpp

6
libraries/SITL/SIM_FlightAxis.cpp

@ -129,9 +129,9 @@ Connection: Keep-Alive @@ -129,9 +129,9 @@ Connection: Keep-Alive
body += 4;
// get the rest of the body
uint32_t expected_length = content_length + (body - reply);
if (expected_length >= sizeof(reply)) {
printf("Reply too large %u\n", expected_length);
int32_t expected_length = content_length + (body - reply);
if (expected_length >= (int32_t)sizeof(reply)) {
printf("Reply too large %i\n", expected_length);
return nullptr;
}
while (ret < expected_length) {

Loading…
Cancel
Save