From 1d57e30b032d8b68ca2a929d24d1ff82c529ca5a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 26 Jun 2019 11:04:45 +0200 Subject: OrderedQueue: fix warning --- src/OrderedQueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/OrderedQueue.cpp') 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 -- cgit v1.2.3