diff --git a/sn3d.h b/sn3d.h index 15e4dd3bd..45819c220 100644 --- a/sn3d.h +++ b/sn3d.h @@ -179,7 +179,7 @@ __attribute__((__format__(__printf__, 1, 2))) inline auto printout(const char *f #ifdef __cpp_lib_atomic_ref #define atomicadd(var, val) \ - std::atomic_ref::type>(var).fetch_add(val, std::memory_order_relaxed); + std::atomic_ref::type>(var).fetch_add(val, std::memory_order_relaxed); #else // needed for Apple clang #define atomicadd(var, val) __atomic_fetch_add(&var, val, __ATOMIC_RELAXED);