Fixes the comparison. uint8_t was promoted to int.

master
Alejandro Leal 3 years ago committed by AlaiaL
parent 2156c319d2
commit 65519eaf3d

@ -211,7 +211,7 @@ uint32_t rlc_am_nr_read_status_pdu(const uint8_t* payload,
ptr++;
}
status->N_nack++;
if ((ptr - payload) > nof_bytes) {
if (uint32_t(ptr - payload) > nof_bytes) {
fprintf(stderr, "Malformed PDU, trying to read more bytes than it is available\n");
return 0;
}

Loading…
Cancel
Save