diff --git a/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp b/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp index 990480ffd2..4aab983ede 100644 --- a/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_blit_sdma.cpp @@ -455,8 +455,8 @@ hsa_status_t BlitSdma::SubmitC hsa_dim3_t Doff = *dst_offset; hsa_dim3_t Range = *range; - Src.base += Soff.z * Src.slice + Soff.y * Src.pitch; - Dst.base += Doff.z * Dst.slice + Doff.y * Dst.pitch; + Src.base = static_cast(Src.base) + Soff.z * Src.slice + Soff.y * Src.pitch; + Dst.base = static_cast(Dst.base) + Doff.z * Dst.slice + Doff.y * Dst.pitch; Soff.y = Soff.z = 0; Doff.y = Doff.z = 0;