From fed6e19ddbe7853edc446b3b9ae28fb6001df8b1 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Fri, 6 Jan 2023 13:50:33 -0500 Subject: [PATCH] Fix missing cast in writeArray --- src/fileio/fileio.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileio/fileio.hpp b/src/fileio/fileio.hpp index 66c40e48..766b235d 100644 --- a/src/fileio/fileio.hpp +++ b/src/fileio/fileio.hpp @@ -44,7 +44,7 @@ template void writeArray(std::ostream& to, const T& array, int width, int height) { using int_type = decltype(typename array_value_type::type() + 1); for(int y = 0; y < height; y++) { - to << array[0][y]; + to << int_type(array[0][y]); for(int x = 1; x < width; x++) to << '\t' << int_type(array[x][y]); to << '\n';