Stylistic rewrite to make read-only intent clear

This commit is contained in:
2026-02-24 19:56:28 +01:00
parent 95f05c619d
commit ee2dc56342
+3 -1
View File
@@ -209,7 +209,9 @@ void ApplyRemap(aare::NDView<T, 2> const &input,
auto flat_index = order_map(row, col);
if (flat_index >= 0 &&
static_cast<size_t>(flat_index) < input.size()) {
output(row, col) = static_cast<T>(input[flat_index]);
T const &value = input[flat_index];
output(row, col) = value;
// output(row, col) = static_cast<T>(input[flat_index]);
} else {
output(row, col) = static_cast<T>(0); // or nan?
}