diff --git a/AK/Queue.h b/AK/Queue.h index 7d672545723..f686fab6e07 100644 --- a/AK/Queue.h +++ b/AK/Queue.h @@ -38,7 +38,7 @@ public: Queue() { } ~Queue() { } - int size() const { return m_size; } + size_t size() const { return m_size; } bool is_empty() const { return m_size == 0; } void enqueue(T&& value) @@ -81,8 +81,8 @@ public: private: SinglyLinkedList>> m_segments; - int m_index_into_first { 0 }; - int m_size { 0 }; + size_t m_index_into_first { 0 }; + size_t m_size { 0 }; }; } diff --git a/Applications/Piano/AudioEngine.cpp b/Applications/Piano/AudioEngine.cpp index e3b8d5c4347..50a7f57ce8f 100644 --- a/Applications/Piano/AudioEngine.cpp +++ b/Applications/Piano/AudioEngine.cpp @@ -107,7 +107,7 @@ void AudioEngine::fill_buffer(FixedArray& buffer) } if (m_delay) { - if (m_delay_buffers.size() >= m_delay) { + if (m_delay_buffers.size() >= static_cast(m_delay)) { auto to_blend = m_delay_buffers.dequeue(); for (size_t i = 0; i < to_blend->size(); ++i) { buffer[i].left += (*to_blend)[i].left * 0.333333;