From 7361e476b848e9fafa8382fc192c58414aef32f9 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 27 Jun 2004 15:40:29 +0000 Subject: [PATCH] Fixed operator-- [SVN r23210] --- include/boost/detail/atomic_count_gcc.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/detail/atomic_count_gcc.hpp b/include/boost/detail/atomic_count_gcc.hpp index b4a46ce..8761b80 100644 --- a/include/boost/detail/atomic_count_gcc.hpp +++ b/include/boost/detail/atomic_count_gcc.hpp @@ -38,7 +38,7 @@ public: long operator--() { - return !__exchange_and_add(&value_, -1); + return __exchange_and_add(&value_, -1) - 1; } operator long() const