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