From a54266a3c208b22276154d6351841d8f65ef15d0 Mon Sep 17 00:00:00 2001 From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de> Date: Wed, 11 Oct 2023 20:42:49 +0000 Subject: [PATCH] algo::Unpack: Replace unsigned int with size_t for sizes. --- algo/unpack/Unpack.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/algo/unpack/Unpack.cxx b/algo/unpack/Unpack.cxx index 7b994ad5f3..266e6d1827 100644 --- a/algo/unpack/Unpack.cxx +++ b/algo/unpack/Unpack.cxx @@ -203,9 +203,9 @@ namespace cbm::algo xpu::push_timer("Merge"); xpu::t_add_bytes(nDigisTotal * sizeof(Digi)); CBM_PARALLEL_FOR(schedule(dynamic)) - for (unsigned int i = 0; i < numMs; i++) { - unsigned int offset = 0; - for (unsigned int x = 0; x < i; x++) + for (size_t i = 0; i < numMs; i++) { + size_t offset = 0; + for (size_t x = 0; x < i; x++) offset += msDigis[x].size(); std::copy(msDigis[i].begin(), msDigis[i].end(), digisOut.begin() + offset); } -- GitLab