Skip to content

Commit

Permalink
Remove yuni volatile warning (#1828)
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin authored Dec 18, 2023
1 parent cbb77b9 commit ba0adde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ext/yuni/src/yuni/core/atomic/int.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ inline Int<Size, TP>::operator ScalarType() const
template<int Size, template<class> class TP>
inline typename Int<Size, TP>::ScalarType Int<Size, TP>::operator++()
{
return (threadSafe) ? Private::AtomicImpl::Operator<size, TP>::Increment(*this) : (++pValue);
return Private::AtomicImpl::Operator<size, TP>::Increment(*this);
}

template<int Size, template<class> class TP>
inline typename Int<Size, TP>::ScalarType Int<Size, TP>::operator--()
{
return (threadSafe) ? Private::AtomicImpl::Operator<size, TP>::Decrement(*this) : (--pValue);
return Private::AtomicImpl::Operator<size, TP>::Decrement(*this);
}

template<int Size, template<class> class TP>
Expand Down

0 comments on commit ba0adde

Please sign in to comment.