diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2017-09-21 11:38:10 -0400 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2017-09-21 11:38:10 -0400 |
commit | f70c0f1518b05261018547903903ae2e21c508ac (patch) | |
tree | 7557bc0e640b7138020c45d7170c60121d9214f9 /src/components/protocol_handler/include/protocol_handler/protocol_packet.h | |
parent | 24b3a361b095da5432366f7cf8d157548c8c5487 (diff) | |
download | sdl_core-f70c0f1518b05261018547903903ae2e21c508ac.tar.gz |
Fix style issuesfix/coverity_issues_4.4.0
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.h | 9 |
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; |