Compilation fix

This commit is contained in:
Nekotekina 2019-10-19 14:08:21 +03:00
commit 59382e023d

View file

@ -29,17 +29,17 @@ namespace stx
{ {
auto [val, ok] = _this->m_state.fetch_op([](u32& value) auto [val, ok] = _this->m_state.fetch_op([](u32& value)
{ {
if (val == 0) if (value == 0)
{ {
val = 1; value = 1;
return true; return true;
} }
if constexpr (sizeof...(FAndArgs)) if constexpr (sizeof...(FAndArgs))
{ {
if (val & c_init_bit) if (value & c_init_bit)
{ {
val -= c_init_bit - 1; value -= c_init_bit - 1;
return true; return true;
} }
} }