GCC/G++ build fixes, GitHub issue #563

This commit is contained in:
Adam Ierymenko 2017-08-14 11:43:39 -07:00
parent ee1dc16e8f
commit a4bc40542b
3 changed files with 5 additions and 5 deletions

View file

@ -50,7 +50,7 @@ public:
inline int load() const
{
#ifdef __GNUC__
return __sync_or_and_fetch(&_v,0);
return __sync_or_and_fetch(const_cast<int *>(&_v),0);
#else
return _v.load();
#endif