rsx/ring_buffer: Warnings cleanup

This commit is contained in:
kd-11 2019-08-31 14:34:45 +03:00 committed by kd-11
parent 33609717f8
commit 27fabd7607
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public:
*/
size_t get_current_put_pos_minus_one() const
{
return (m_put_pos - 1 > 0) ? m_put_pos - 1 : m_size - 1;
return (m_put_pos > 0) ? m_put_pos - 1 : m_size - 1;
}
bool is_critical() const