From 3ebc9b8f0b93eda01b918812c1df40c14b9139d2 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Wed, 6 Apr 2005 00:32:09 +0000 Subject: [PATCH] Remove extra argument to atomic_dcrement. [SVN r27994] --- include/boost/detail/sp_counted_base_cw_ppc.hpp | 4 ++-- include/boost/detail/sp_counted_base_gcc_ppc.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/detail/sp_counted_base_cw_ppc.hpp b/include/boost/detail/sp_counted_base_cw_ppc.hpp index f937d2a..b44178f 100644 --- a/include/boost/detail/sp_counted_base_cw_ppc.hpp +++ b/include/boost/detail/sp_counted_base_cw_ppc.hpp @@ -121,7 +121,7 @@ public: void release() // nothrow { - if( atomic_decrement( &use_count_, -1 ) == 0 ) + if( atomic_decrement( &use_count_ ) == 0 ) { dispose(); weak_release(); @@ -135,7 +135,7 @@ public: void weak_release() // nothrow { - if( atomic_decrement( &weak_count_, -1 ) == 0 ) + if( atomic_decrement( &weak_count_ ) == 0 ) { destroy(); } diff --git a/include/boost/detail/sp_counted_base_gcc_ppc.hpp b/include/boost/detail/sp_counted_base_gcc_ppc.hpp index 9a6b609..80ef987 100644 --- a/include/boost/detail/sp_counted_base_gcc_ppc.hpp +++ b/include/boost/detail/sp_counted_base_gcc_ppc.hpp @@ -148,7 +148,7 @@ public: void release() // nothrow { - if( atomic_decrement( &use_count_, -1 ) == 0 ) + if( atomic_decrement( &use_count_ ) == 0 ) { dispose(); weak_release(); @@ -162,7 +162,7 @@ public: void weak_release() // nothrow { - if( atomic_decrement( &weak_count_, -1 ) == 0 ) + if( atomic_decrement( &weak_count_ ) == 0 ) { destroy(); }