From c7f9218fa580e95f33d73104c06fa6bba0a88539 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 9 Nov 2023 20:29:26 +0000 Subject: [PATCH] Fix narrowing conversion warning in ring_buffer.hpp --- src/core/ring_buffer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);