Skip to content

Commit 3a3468a

Browse files
committed
Use uint8_t*
1 parent 1eee8e0 commit 3a3468a

File tree

1 file changed

+2
-4
lines changed
  • offload/plugins-nextgen/amdgpu/src

1 file changed

+2
-4
lines changed

offload/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,8 +1225,7 @@ struct AMDGPUStreamTy {
12251225
auto BasePtr = Args->Dst;
12261226
for (size_t I = 0; I < Args->NumTimes; I++) {
12271227
std::memcpy(BasePtr, Args->Src, Args->Size);
1228-
BasePtr = reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(BasePtr) +
1229-
Args->Size);
1228+
BasePtr = reinterpret_cast<uint8_t *>(BasePtr) + Args->Size;
12301229
}
12311230

12321231
return Plugin::success();
@@ -1480,8 +1479,7 @@ struct AMDGPUStreamTy {
14801479
auto *InterPtr = Inter;
14811480
for (size_t I = 0; I < NumTimes; I++) {
14821481
std::memcpy(InterPtr, Src, CopySize);
1483-
InterPtr = reinterpret_cast<void *>(
1484-
reinterpret_cast<uintptr_t>(InterPtr) + CopySize);
1482+
InterPtr = reinterpret_cast<uint8_t *>(InterPtr) + CopySize;
14851483
}
14861484

14871485
// Return the second signal because it will not be used.

0 commit comments

Comments
 (0)