mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
SITL: fixed warning comparing signed vs unsigned
This commit is contained in:
parent
e777176c4d
commit
faa4238370
@ -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…
Reference in New Issue
Block a user