Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.cpp
diff options
context:
space:
mode:
Commit00bea258e12e4481c50c2e275243e9dfeaeee9ca (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-30 20:38:28 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-30 20:38:28 +0300
Filesc82aa80d3320722c93f5d20619e32213e0217102 /src/Models/CellFormula.cpp
FMI-OOP-P2_Tables-00bea258e12e4481c50c2e275243e9dfeaeee9ca.tar
FMI-OOP-P2_Tables-00bea258e12e4481c50c2e275243e9dfeaeee9ca.tar.gz
FMI-OOP-P2_Tables-00bea258e12e4481c50c2e275243e9dfeaeee9ca.zip
Parentdd8ff49d2bd29f08c5a6afa39d89dba3d715ee4a (diff)
Autocommit at 30.05.2022 @ 20:38
1 files changed, 2 insertions, 2 deletions
-rw-r--r--src/Models/CellFormula.cpp4
diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp
index de5202d..95fc3eb 100644
--- a/src/Models/CellFormula.cpp
+++ b/src/Models/CellFormula.cpp
@@ -94,7 +94,7 @@ void CellFormula::parseAndSetValue(const char* str) {
currOp = *str;
localCells.add(CellDouble(val));
- loc = {-1, localCells.get_count() - 1};
+ loc = {-1, (int)(localCells.get_count() - 1)};
}
if (currOp == '^') currOp *= -1;
@@ -106,7 +106,7 @@ void CellFormula::parseAndSetValue(const char* str) {
if (currOp == '-') {
formula.add({loc, '+'});
localCells.add(CellDouble(-1.0));
- formula.add({{-1, localCells.get_count() - 1}, '*' * -1});
+ formula.add({{-1, (int)(localCells.get_count() - 1)}, '*' * -1});
}
else formula.add({loc, currOp});
}