Resolve macOS warnings and standardize style

This commit is contained in:
Paul Hollinsky
2018-09-24 19:04:20 -04:00
parent b634e6a443
commit 2099ba9d1e
40 changed files with 50 additions and 44 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ bool Packetizer::input(const std::vector<uint8_t>& inputBytes) {
break;
case ReadState::GetData:
// We do not include the checksum in packetLength so it doesn't get copied into the payload buffer
if(bytes.size() < packetLength + (checksum ? 1 : 0)) { // Read until we have the rest of the packet
if(bytes.size() < (size_t)(packetLength + (checksum ? 1 : 0))) { // Read until we have the rest of the packet
haveEnoughData = false;
break;
}