Experimental atomic_gcc_sync change

This commit is contained in:
John Wellbelove 2020-08-04 11:57:53 +01:00
parent b973b01c08
commit 5f0dae41de

View File

@ -475,7 +475,7 @@ namespace etl
// Pre-increment
T* operator ++()
{
return (T*)__sync_add_and_fetch(&(volatile void*)value, sizeof(T));
return (T*)__sync_add_and_fetch(&value, sizeof(T));
}
T* operator ++() volatile