Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ronan Keryell <[email protected]>
  • Loading branch information
bader and keryell authored Nov 4, 2023
1 parent 074bd85 commit 86b7552
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void copy_ulong_long2marray(sycl::marray<T, dim>& marray,
elem_size * dim > sizeof(value) ? sizeof(value) : elem_size * dim;
size_t shift = 0;
size_t i = 0;
char* valuePtr = reinterpret_cast<char*>(&value);
auto valuePtr = reinterpret_cast<char*>(&value);
while (shift + elem_size <= num_bytes && i < dim) {
memcpy(&(marray[i]), valuePtr + shift, elem_size);
++i;
Expand All @@ -53,7 +53,7 @@ void copy_marray2ulong_long(unsigned long long& value,
elem_size * dim > sizeof(value) ? sizeof(value) : elem_size * dim;
size_t shift = 0;
size_t i = 0;
char* valuePtr = reinterpret_cast<char*>(&value);
auto valuePtr = reinterpret_cast<char*>(&value);
while (shift + elem_size <= num_bytes && i < dim) {
memcpy(valuePtr + shift, &(marray[i]), elem_size);
++i;
Expand Down

0 comments on commit 86b7552

Please sign in to comment.