diff options
Autocommit at 14.06.2022 @ 09:03
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | src/Models/CellInt.cpp | 2 |
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; } |
