Bläddra i källkod

VERSION 0.7.1: small Linux compile fix on g++, does not merit new release

Adam Ierymenko 11 år sedan
förälder
incheckning
939cdc82a2
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      node/AtomicCounter.hpp

+ 1 - 1
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;