diff --git a/Core/Simulation/ISimulation.cpp b/Core/Simulation/ISimulation.cpp index 7dd372723bc4cc9f1b38a661f619f68ce44d2d59..dc8dad4ee5e4faedf8e7c9e7ec67249d0765c53e 100644 --- a/Core/Simulation/ISimulation.cpp +++ b/Core/Simulation/ISimulation.cpp @@ -37,7 +37,7 @@ size_t getIndexStep(size_t total_size, size_t n_handlers) size_t getStartIndex(size_t n_handlers, size_t current_handler, size_t n_elements) { - const size_t handler_size = getIndexStep(n_elements, static_cast<size_t>(n_handlers)); + const size_t handler_size = getIndexStep(n_elements, n_handlers); const size_t start_index = current_handler * handler_size; if (start_index >= n_elements) return n_elements; @@ -46,7 +46,7 @@ size_t getStartIndex(size_t n_handlers, size_t current_handler, size_t n_element size_t batchSize(size_t n_handlers, size_t current_handler, size_t n_elements) { - const size_t handler_size = getIndexStep(n_elements, static_cast<size_t>(n_handlers)); + const size_t handler_size = getIndexStep(n_elements, n_handlers); const size_t start_index = current_handler * handler_size; if (start_index >= n_elements) return 0;