Fixed operator--

[SVN r23210]
This commit is contained in:
Peter Dimov
2004-06-27 15:40:29 +00:00
parent e1bd18f6a6
commit 7361e476b8

View File

@ -38,7 +38,7 @@ public:
long operator--()
{
return !__exchange_and_add(&value_, -1);
return __exchange_and_add(&value_, -1) - 1;
}
operator long() const