aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-06-26 11:04:45 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-06-26 11:04:45 +0200
commit1d57e30b032d8b68ca2a929d24d1ff82c529ca5a (patch)
tree7d34b1911c86eb3ea87e9d80d5309ce136e8caf3
parent8e7a15754a3fef09cc5de372f207936740459c56 (diff)
downloadODR-SourceCompanion-1d57e30b032d8b68ca2a929d24d1ff82c529ca5a.tar.gz
ODR-SourceCompanion-1d57e30b032d8b68ca2a929d24d1ff82c529ca5a.tar.bz2
ODR-SourceCompanion-1d57e30b032d8b68ca2a929d24d1ff82c529ca5a.zip
OrderedQueue: fix warning
-rw-r--r--src/OrderedQueue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OrderedQueue.cpp b/src/OrderedQueue.cpp
index 8a768e7..9e69d95 100644
--- a/src/OrderedQueue.cpp
+++ b/src/OrderedQueue.cpp
@@ -44,7 +44,7 @@ void OrderedQueue::push(int32_t index, const uint8_t* buf, size_t size)
}
if (_stock.size() < _capacity) {
- if (_stock.find(index) == _stock.end()) {
+ if (_stock.find(index) != _stock.end()) {
// index already exists, duplicated frame
// Replace the old one by the new one.
// the old one could a an old frame from the previous index loop