diff --git a/src/core/ring_buffer.hpp b/src/core/ring_buffer.hpp index 8ff914eb45..5aca52a7d2 100644 --- a/src/core/ring_buffer.hpp +++ b/src/core/ring_buffer.hpp @@ -615,7 +615,7 @@ public: dbg_assert(pos.ring == this); - const uint32 new_pos_start = this->setup_insert(pos.pos, count); + const uint32 new_pos_start = this->setup_insert(pos.pos, (uint32)count); uint32 new_pos = new_pos_start; for (size_t i = 0; i != count; i++) { new (this->raw_ptr_at_pos(new_pos)) T(value);