Fix SafeNumeric::conditional_increment() for NO_THREADS

This commit is contained in:
Pedro J. Estébanez 2021-02-25 21:22:01 +01:00
parent 2adacd751c
commit b1edb69249

View file

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