diff --git a/src/hack/patterns/ring_buffer.hpp b/src/hack/patterns/ring_buffer.hpp index f6b52b8..3393bea 100644 --- a/src/hack/patterns/ring_buffer.hpp +++ b/src/hack/patterns/ring_buffer.hpp @@ -85,7 +85,7 @@ namespace hack::patterns return m_data; } - void skip(int n) + void skip(std::size_t n) { m_tail += n; while (m_tail >= m_size) m_tail -= m_size; @@ -137,7 +137,7 @@ namespace hack::patterns private: std::size_t m_head{ 0 }; std::size_t m_tail{ 0 }; - int m_size; + std::size_t m_size; bool m_full{ false }; private: