Browse Source

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

Adam Ierymenko 11 năm trước cách đây
mục cha
commit
939cdc82a2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;