Fix return type error for atomic GCC

This commit is contained in:
John Wellbelove 2020-10-31 10:56:21 +00:00
parent c52d498159
commit c0eb60ec2a

View File

@ -579,7 +579,7 @@ namespace etl
T* load(etl::memory_order order = etl::memory_order_seq_cst) const volatile
{
return __sync_fetch_and_add(&value, 0);
return (T*)__sync_fetch_and_add(&value, 0);
}
// Fetch add