Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.cpp
diff options
context:
space:
mode:
Commit067612cecd7d91159177b421366476134af0247d (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-06-14 09:03:55 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-06-14 09:03:55 +0300
Filesf0dea2f47d74053a4d25c3fdec493f6c1b3e68d3 /src/Models/CellFormula.cpp
FMI-OOP-P2_Tables-067612cecd7d91159177b421366476134af0247d.tar
FMI-OOP-P2_Tables-067612cecd7d91159177b421366476134af0247d.tar.gz
FMI-OOP-P2_Tables-067612cecd7d91159177b421366476134af0247d.zip
Parent41b5f9891b2758193d8ec4d524f5f4b1dc27ec53 (diff)
Autocommit at 14.06.2022 @ 09:03
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 d5aea00..5146bce 100644
--- a/src/Models/CellFormula.cpp
+++ b/src/Models/CellFormula.cpp
@@ -8,8 +8,8 @@ const Cell* CellFormula::ptrByInd(Pair<int, int> loc) const {
return (loc.left < 0) ? &localCells[loc.right] : (*tableCells)[loc.left][loc.right];
}
-double pow(double x, unsigned y) {
- if (y == 0) return 1;
+double pow(double x, int y) {
+ if (y <= 0) return 1;
double res = x;
for (unsigned i = 1; i < y; i++)