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

This commit is contained in:
Adam Ierymenko 2014-03-05 15:40:31 -08:00
parent a207ce13c0
commit 939cdc82a2

View File

@ -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;