浏览代码

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

Adam Ierymenko 11 年之前
父节点
当前提交
939cdc82a2
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;