From 4389d81c454e8d580111bbced4fa0f75572b7205 Mon Sep 17 00:00:00 2001 From: Maarten Arnst Date: Sun, 10 Sep 2023 14:36:38 +0200 Subject: [PATCH] Fix to avoid #186-D pointless comparison warning. --- core/src/impl/Kokkos_ViewMapping.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/impl/Kokkos_ViewMapping.hpp b/core/src/impl/Kokkos_ViewMapping.hpp index 877004ae4ce..01d0dc4f681 100644 --- a/core/src/impl/Kokkos_ViewMapping.hpp +++ b/core/src/impl/Kokkos_ViewMapping.hpp @@ -3667,7 +3667,7 @@ class ViewMapping< size_t exp_stride = 1; if (std::is_same::value) { - for (unsigned int i = 0; i < src.Rank; i++) { + for (int i = 0; i < (int)src.Rank; i++) { if (i > 0) exp_stride *= src.extent(i - 1); if (strides[i] != exp_stride) { assignable = false; @@ -3676,7 +3676,7 @@ class ViewMapping< } } else if (std::is_same::value) { - for (unsigned int i = 0; i < src.Rank; i++) { + for (int i = 0; i < (int)src.Rank; i++) { if (i > 0) exp_stride *= src.extent(src.Rank - i); if (strides[src.Rank - 1 - i] != exp_stride) { assignable = false;