diff options
1 files changed, 2 insertions, 2 deletions
| -rw-r--r-- | src/Models/Table.cpp | 4 |
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); |
