fix compiler warning

This commit is contained in:
john30
2019-08-11 08:21:44 +02:00
parent 595d1dd73a
commit 28f79290ed
+2 -2
View File
@@ -1558,8 +1558,8 @@ void BusHandler::formatGrabResult(bool unknown, bool decode, ostringstream* outp
} }
bool first = true; bool first = true;
for (const auto& it : m_grabbedMessages) { for (const auto& it : m_grabbedMessages) {
if (since > 0 && it.second.getLastTime() < since if ((since > 0 && it.second.getLastTime() < since)
|| until > 0 && it.second.getLastTime() >= until) { || (until > 0 && it.second.getLastTime() >= until)) {
continue; continue;
} }
if (it.second.dump(unknown, m_messages, first, decode, output, isDirectMode)) { if (it.second.dump(unknown, m_messages, first, decode, output, isDirectMode)) {