diff --git a/include/aare/RemapAlgorithm.hpp b/include/aare/RemapAlgorithm.hpp index ed816c0..756122b 100644 --- a/include/aare/RemapAlgorithm.hpp +++ b/include/aare/RemapAlgorithm.hpp @@ -53,8 +53,8 @@ void ApplyRemap(NDView input, NDView order_map, const auto nrows = order_map.shape(0); const auto ncols = order_map.shape(1); - for (size_t row = 0; row < nrows; ++row) { - for (size_t col = 0; col < ncols; ++col) { + for (ssize_t row = 0; row < nrows; ++row) { + for (ssize_t col = 0; col < ncols; ++col) { auto flat_index = order_map(row, col);