Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
Commitc038f8f4bdbd3d1fdfa328d2eac0efdcaeb9cb09 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-28 19:09:42 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-28 19:09:42 +0300
Files7d17c621731668dd3ccfe3b79f2848daea4b0c13 /src/Models/Table.cpp
FMI-OOP-P2_Tables-c038f8f4bdbd3d1fdfa328d2eac0efdcaeb9cb09.tar
FMI-OOP-P2_Tables-c038f8f4bdbd3d1fdfa328d2eac0efdcaeb9cb09.tar.gz
FMI-OOP-P2_Tables-c038f8f4bdbd3d1fdfa328d2eac0efdcaeb9cb09.zip
Parent64d959af1090f5d7101c3c78153106871db7e902 (diff)
Autocommit at 28.05.2022 @ 19:09
1 files changed, 2 insertions, 2 deletions
-rw-r--r--src/Models/Table.cpp4
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);