소스 검색

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;