diff --git a/node/AtomicCounter.hpp b/node/AtomicCounter.hpp index 9dc5fd05e..80208edac 100644 --- a/node/AtomicCounter.hpp +++ b/node/AtomicCounter.hpp @@ -58,7 +58,7 @@ public: throw() { #ifdef __GNUC__ - return __sync_or_and_fetch(&_v,0); + return __sync_or_and_fetch(const_cast (&_v),0); #else #ifdef __WINDOWS__ return (int)_v;