Fix SafeNumeric::conditional_increment() for NO_THREADS

(cherry picked from commit b1edb69249)
This commit is contained in:
Pedro J. Estébanez 2021-02-25 21:22:01 +01:00 committed by Rémi Verschelde
parent 1aa02d5ceb
commit 5a67eefbcf

View file

@ -249,7 +249,7 @@ public:
} }
_ALWAYS_INLINE_ T conditional_increment() { _ALWAYS_INLINE_ T conditional_increment() {
if (value != 0) { if (value == 0) {
return 0; return 0;
} else { } else {
return ++value; return ++value;