Skip to content

Commit

Permalink
Let increment be of type uintptr_t fixing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jan 13, 2023
1 parent a9c997c commit 20abee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/Kokkos_ScratchSpace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class ScratchMemorySpace {
// Note: for team scratch m_offset is 0, since every
// thread will get back the same shared pointer
void* tmp = m_iter + m_offset * size;
ptrdiff_t increment = size * m_multiplier;
uintptr_t increment = size * m_multiplier;

// Cast to uintptr_t to avoid problems with pointer arithmetic using SYCL
const auto end_iter =
Expand Down

0 comments on commit 20abee9

Please sign in to comment.