diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-05 15:40:31 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-05 15:40:31 -0800 |
commit | 939cdc82a2041701c9f08c1745d0175f2c4f62c8 (patch) | |
tree | 2b82db485a9204d45cb16f4d313291f925d2a644 /node | |
parent | a207ce13c078730f5e999888bb6d575bc67191a0 (diff) | |
download | infinitytier-939cdc82a2041701c9f08c1745d0175f2c4f62c8.tar.gz infinitytier-939cdc82a2041701c9f08c1745d0175f2c4f62c8.zip |
VERSION 0.7.1: small Linux compile fix on g++, does not merit new release
Diffstat (limited to 'node')
-rw-r--r-- | node/AtomicCounter.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/AtomicCounter.hpp b/node/AtomicCounter.hpp index 9dc5fd05..80208eda 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 <volatile int *>(&_v),0); #else #ifdef __WINDOWS__ return (int)_v; |