diff options
author | Marc Laukien <marc@zeroc.com> | 2002-01-14 21:31:03 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-01-14 21:31:03 +0000 |
commit | 10a05710b876c4c04072224a62d25a974245d17e (patch) | |
tree | dcd281feb54d0e72223697e4120ebb69b9a14511 /cpp/include/IceUtil/Shared.h | |
parent | glacier intergration (diff) | |
download | ice-10a05710b876c4c04072224a62d25a974245d17e.tar.bz2 ice-10a05710b876c4c04072224a62d25a974245d17e.tar.xz ice-10a05710b876c4c04072224a62d25a974245d17e.zip |
glacier integration
Diffstat (limited to 'cpp/include/IceUtil/Shared.h')
-rw-r--r-- | cpp/include/IceUtil/Shared.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/include/IceUtil/Shared.h b/cpp/include/IceUtil/Shared.h index 1694ce7956e..c323cfbfbfc 100644 --- a/cpp/include/IceUtil/Shared.h +++ b/cpp/include/IceUtil/Shared.h @@ -87,9 +87,9 @@ static inline int ice_atomic_dec_and_test(ice_atomic_t *v) /** * ice_atomic_exchange_add - same as InterlockedExchangeAdd. This didn't - * come from ice_atomic.h (the code was derived from similar code in + * come from atomic.h (the code was derived from similar code in * /usr/include/asm/rwsem.h) - **/ + */ static inline int ice_atomic_exchange_add(int i, ice_atomic_t* v) { int tmp = i; @@ -284,7 +284,7 @@ Shared::__decRef() inline int Shared::__getRef() const { - return InterlockedExchangeAdd(const_cast<ice_atomic_t*>(&_ref), 0); + return InterlockedExchangeAdd(const_cast<LONG*>(&_ref), 0); } inline void |