From 92820555daeb842ac64e267381fe886cb26e2c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana=20G=C3=B3mez?= Date: Sat, 28 Oct 2023 10:56:47 +0200 Subject: [PATCH] Simple fix --- src/Platform/BestResultsExcel.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Platform/BestResultsExcel.cc b/src/Platform/BestResultsExcel.cc index 45751ad..ae487a6 100644 --- a/src/Platform/BestResultsExcel.cc +++ b/src/Platform/BestResultsExcel.cc @@ -21,11 +21,10 @@ namespace platform { string getColumnName(int colNum) { string columnName = ""; - int modulo; if (colNum == 0) return "A"; while (colNum > 0) { - modulo = colNum % 26; + int modulo = colNum % 26; columnName = char(65 + modulo) + columnName; colNum = (int)((colNum - modulo) / 26); }