Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Fixed a dangling reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ogiroux authored and wmaxey committed Oct 12, 2020
1 parent 1ca6a7f commit c12c1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cuda/std/detail/__atomic
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ __host__ __device__ inline _Tp* __cxx_atomic_fetch_sub(__cxx_atomic_base_impl_de
#ifdef __CUDA_ARCH__
return detail::__atomic_fetch_sub_cuda(&__a->__a_value, __delta, __order, detail::__scope_tag<_Sco>());
#else
return __atomic_fetch_sub_explicit(&__a->__a_value, __delta, __order);
return __atomic_fetch_sub(&__a->__a_value, __delta, __order);
#endif
}
template<class _Tp, int _Sco>
Expand Down

0 comments on commit c12c1fb

Please sign in to comment.