Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellInt.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/Models/CellInt.cpp2
diff --git a/src/Models/CellInt.cpp b/src/Models/CellInt.cpp
index 37283e4..2e61099 100644
--- a/src/Models/CellInt.cpp
+++ b/src/Models/CellInt.cpp
@@ -13,7 +13,7 @@ CellInt::CellInt(const char* str) {
if (*str == '-' || *str == '+') str++;
while (*str != '\0')
- value = value * 10 + '0' - *(str++);
+ value = value * 10 + (*(str++) - '0');
if (negative) value *= -1;
}