Apply clang-tidy-11 fixes to CUDA files
[alexxy/gromacs.git] / src / gromacs / nbnxm / cuda / nbnxm_gpu_buffer_ops_internal.cu
index 577b2b4b920f6201128779f5a5b0f1740badfb5e..f6533259b5c4aecafc5676629d0eb4bd4bb01a91 100644 (file)
@@ -89,7 +89,7 @@ static __global__ void nbnxn_gpu_x_to_nbat_x_kernel(int numColumns,
 
         // Destination address where x should be stored in nbnxm layout. We use this cast here to
         // save only x, y and z components, not touching the w (q) component, which is pre-defined.
-        float3* gm_xqDest = (float3*)&gm_xq[threadIndex + offset];
+        float3* gm_xqDest = reinterpret_cast<float3*>(&gm_xq[threadIndex + offset]);
 
         // Perform layout conversion of each element.
         if (threadIndex < numAtoms)