From 063f0bd3a438d23191db3018927750fbfd450355 Mon Sep 17 00:00:00 2001 From: Luc Berger Date: Wed, 30 Oct 2024 14:55:20 -0600 Subject: [PATCH] SerialInverseLU: fix overflow in integer multiplication (#2410) Last one of a series of fixes to clean-up the CodeQL safety issues, after that we should be all clean! Signed-off-by: Luc Berger-Vergiat --- batched/dense/unit_test/Test_Batched_SerialInverseLU.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batched/dense/unit_test/Test_Batched_SerialInverseLU.hpp b/batched/dense/unit_test/Test_Batched_SerialInverseLU.hpp index 6f11154471..fd0ca336bf 100644 --- a/batched/dense/unit_test/Test_Batched_SerialInverseLU.hpp +++ b/batched/dense/unit_test/Test_Batched_SerialInverseLU.hpp @@ -143,7 +143,7 @@ void impl_test_batched_inverselu(const int N, const int BlkSize) { /// randomized input testing views AViewType a0("a0", N, BlkSize, BlkSize); AViewType a1("a1", N, BlkSize, BlkSize); - WViewType w("w", N, BlkSize * BlkSize); + WViewType w("w", N, BlkSize * static_cast(BlkSize)); AViewType c0("c0", N, BlkSize, BlkSize); Kokkos::Random_XorShift64_Pool random(13718);