From 0ee2f761ae68dcb9c73c5d2036d9c1225828f923 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 18 Feb 2020 14:59:11 +0300 Subject: [PATCH] Fix warning in lf_fifo<>::push_begin() --- Utilities/lockless.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/lockless.h b/Utilities/lockless.h index 903f906ac4..10674d3c17 100644 --- a/Utilities/lockless.h +++ b/Utilities/lockless.h @@ -70,7 +70,7 @@ public: // Acquire the place for one or more elements. u32 push_begin(u32 count = 1) { - return m_ctrl.fetch_add(count); + return static_cast(m_ctrl.fetch_add(count)); } // Get current "pop" position