From a35960c6d5e1e54b33a9d0e86e1f92ae2fc111b1 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 15 Oct 2023 12:47:45 +0200 Subject: [PATCH] silence codegl --- tools/cryptorf/sma_multi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/cryptorf/sma_multi.cpp b/tools/cryptorf/sma_multi.cpp index dcb412eba..25c4aabed 100644 --- a/tools/cryptorf/sma_multi.cpp +++ b/tools/cryptorf/sma_multi.cpp @@ -439,7 +439,7 @@ static uint32_t ice_sm_right(const uint8_t *ks, uint8_t *mask, vector g_topbits = 0; std::vector threads(g_num_cpus); - for (uint8_t m = 0; m < g_num_cpus; m++) { + for (uint32_t m = 0; m < g_num_cpus; m++) { threads[m] = std::thread(ice_sm_right_thread, m, g_num_cpus, ks, &bincstates, mask); } for (auto &t : threads) { @@ -552,7 +552,7 @@ static void ice_sm_left(const uint8_t *ks, uint8_t *mask, vector *pcstates map bincstates; std::vector threads(g_num_cpus); - for (uint8_t m = 0; m < g_num_cpus; m++) { + for (uint32_t m = 0; m < g_num_cpus; m++) { threads[m] = std::thread(ice_sm_left_thread, m, g_num_cpus, ks, &bincstates, mask); } @@ -952,7 +952,7 @@ int main(int argc, const char *argv[]) { key_found = false; key = 0; std::vector threads(g_num_cpus); - for (uint8_t m = 0; m < g_num_cpus; m++) { + for (uint32_t m = 0; m < g_num_cpus; m++) { threads[m] = std::thread(ice_compare, m, g_num_cpus, &pgc_candidates, &ostate, ref(Ci), ref(Q), ref(Ch), ref(Ci_1)); }