Fixed operator--

[SVN r23210]
This commit is contained in:
Peter Dimov committed 2004-06-27 15:40:29 +00:00
1 parent e1bd18f6a6
commit 7361e476b8
1 file changed
+1 -1
+1 -1
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