diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-06-26 11:04:45 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-06-26 11:04:45 +0200 |
commit | 1d57e30b032d8b68ca2a929d24d1ff82c529ca5a (patch) | |
tree | 7d34b1911c86eb3ea87e9d80d5309ce136e8caf3 | |
parent | 8e7a15754a3fef09cc5de372f207936740459c56 (diff) | |
download | ODR-SourceCompanion-1d57e30b032d8b68ca2a929d24d1ff82c529ca5a.tar.gz ODR-SourceCompanion-1d57e30b032d8b68ca2a929d24d1ff82c529ca5a.tar.bz2 ODR-SourceCompanion-1d57e30b032d8b68ca2a929d24d1ff82c529ca5a.zip |
OrderedQueue: fix warning
-rw-r--r-- | src/OrderedQueue.cpp | 2 |
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 |