From 6b3d95c2f6223b666b835dc3cd57fea924f8623b Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Sun, 3 Jun 2018 03:03:55 +0100 Subject: [PATCH] Fix hideous typos. [ROCm/hip commit: 23f5feaf1315917019c9ae9fdf2911b882c73560] --- projects/hip/include/hip/hcc_detail/hip_atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/include/hip/hcc_detail/hip_atomic.h b/projects/hip/include/hip/hcc_detail/hip_atomic.h index 1304cf74a9..ce4b7c9008 100644 --- a/projects/hip/include/hip/hcc_detail/hip_atomic.h +++ b/projects/hip/include/hip/hcc_detail/hip_atomic.h @@ -57,7 +57,7 @@ __device__ inline float atomicAdd(float* address, float val) { - unsigned int* uaddr{reinterpret_cast(uaddr)}; + unsigned int* uaddr{reinterpret_cast(address)}; unsigned int old{__atomic_load_n(uaddr, __ATOMIC_RELAXED)}; unsigned int r; @@ -72,7 +72,7 @@ __device__ inline double atomicAdd(double* address, double val) { - unsigned long long* uaddr{reinterpret_cast(uaddr)}; + unsigned long long* uaddr{reinterpret_cast(address)}; unsigned long long old{__atomic_load_n(uaddr, __ATOMIC_RELAXED)}; unsigned long long r;