summaryrefslogtreecommitdiff
path: root/src/components/protocol_handler/include/protocol_handler/protocol_packet.h
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2017-09-21 11:38:10 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2017-09-21 11:38:10 -0400
commitf70c0f1518b05261018547903903ae2e21c508ac (patch)
tree7557bc0e640b7138020c45d7170c60121d9214f9 /src/components/protocol_handler/include/protocol_handler/protocol_packet.h
parent24b3a361b095da5432366f7cf8d157548c8c5487 (diff)
downloadsdl_core-f70c0f1518b05261018547903903ae2e21c508ac.tar.gz
Diffstat (limited to 'src/components/protocol_handler/include/protocol_handler/protocol_packet.h')
-rw-r--r--src/components/protocol_handler/include/protocol_handler/protocol_packet.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/protocol_handler/include/protocol_handler/protocol_packet.h b/src/components/protocol_handler/include/protocol_handler/protocol_packet.h
index 4d9b6e462c..1c427533e6 100644
--- a/src/components/protocol_handler/include/protocol_handler/protocol_packet.h
+++ b/src/components/protocol_handler/include/protocol_handler/protocol_packet.h
@@ -81,11 +81,14 @@ class ProtocolPacket {
uint8_t patchVersion;
static inline int16_t cmp(const ProtocolVersion& version1,
const ProtocolVersion& version2) {
- int16_t diff = static_cast<int16_t>(version1.majorVersion - version2.majorVersion);
+ int16_t diff =
+ static_cast<int16_t>(version1.majorVersion - version2.majorVersion);
if (diff == 0) {
- diff = static_cast<int16_t>(version1.minorVersion - version2.minorVersion);
+ diff =
+ static_cast<int16_t>(version1.minorVersion - version2.minorVersion);
if (diff == 0) {
- diff = static_cast<int16_t>(version1.patchVersion - version2.patchVersion);
+ diff = static_cast<int16_t>(version1.patchVersion -
+ version2.patchVersion);
}
}
return diff;