mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Fixed warning: comparison of integer expressions of different signedness
This commit is contained in:
parent
a81d630d93
commit
4b87a8a7dd
@ -84,7 +84,7 @@ bool Packet::crc_ok() const {
|
|||||||
acars_fcs.process_byte(field_crc.read(i, 8));
|
acars_fcs.process_byte(field_crc.read(i, 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (acars_fcs.checksum() == field_crc.read(data_length(), fcs_length));
|
return (acars_fcs.checksum() == (unsigned)field_crc.read(data_length(), fcs_length));
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Packet::data_and_fcs_length() const {
|
size_t Packet::data_and_fcs_length() const {
|
||||||
|
@ -191,7 +191,7 @@ bool Packet::crc_ok() const {
|
|||||||
ais_fcs.process_byte(field_crc.read(i, 8));
|
ais_fcs.process_byte(field_crc.read(i, 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (ais_fcs.checksum() == field_crc.read(data_length(), fcs_length));
|
return (ais_fcs.checksum() == (unsigned)field_crc.read(data_length(), fcs_length));
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Packet::data_and_fcs_length() const {
|
size_t Packet::data_and_fcs_length() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user