mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Fix return type error for atomic GCC
This commit is contained in:
parent
c52d498159
commit
c0eb60ec2a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user