Skip to content

Commit

Permalink
Fix C-style cast
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Mar 5, 2024
1 parent 16a5ebe commit 97a94b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/Serial/Kokkos_Serial_Task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class TaskQueueSpecializationConstrained<
using task_base_type = TaskBase;
using queue_type = typename scheduler_type::queue_type;

task_base_type* const end = (task_base_type*)task_base_type::EndTag;
auto* const end = reinterpret_cast<task_base_type*>(task_base_type::EndTag);

execution_space serial_execution_space;
auto& data = serial_execution_space.impl_internal_space_instance()
Expand Down Expand Up @@ -157,7 +157,7 @@ class TaskQueueSpecializationConstrained<
using task_base_type = TaskBase;
using queue_type = typename scheduler_type::queue_type;

task_base_type* const end = (task_base_type*)task_base_type::EndTag;
auto* const end = reinterpret_cast<task_base_type*>(task_base_type::EndTag);

execution_space serial_execution_space;

Expand Down

0 comments on commit 97a94b6

Please sign in to comment.