From c038f8f4bdbd3d1fdfa328d2eac0efdcaeb9cb09 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 28 May 2022 19:09:42 +0300 Subject: Autocommit at 28.05.2022 @ 19:09 --- src/Models/Table.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Models/Table.cpp') diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp index 5840a6e..4bdf13e 100644 --- a/src/Models/Table.cpp +++ b/src/Models/Table.cpp @@ -22,8 +22,8 @@ void Table::putCell(unsigned row, unsigned col, const char* rawValue) { Cell* newCell; if (containsNumber(rawValue)) { - unsigned intParse = atoi(rawValue); - unsigned doubleParse = atof(rawValue); + double intParse = atoi(rawValue); + double doubleParse = atof(rawValue); newCell = (doubleParse - intParse > 0.00001 && doubleParse > 0.00001) ? (Cell*)new CellDouble(doubleParse) : (Cell*)new CellInt(intParse); -- cgit v1.3.1-23-gd82d