From 042045b99842d07ba193f36a4226a9232524398c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20=C5=A0milauer?= Date: Sat, 9 Nov 2019 09:35:05 +0100 Subject: [PATCH] typo fix --- include/spdlog/details/circular_q.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/details/circular_q.h b/include/spdlog/details/circular_q.h index d07f0725..f06cd8e5 100644 --- a/include/spdlog/details/circular_q.h +++ b/include/spdlog/details/circular_q.h @@ -77,11 +77,11 @@ public: { if (tail_ > head_) { - return (tail_ - head_) % max_items; + return (tail_ - head_) % max_items_; } else { - return max_items - (head_ - tail_ ) % max_items; + return max_items_ - (head_ - tail_ ) % max_items_; } }