From 067612cecd7d91159177b421366476134af0247d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 14 Jun 2022 09:03:55 +0300 Subject: Autocommit at 14.06.2022 @ 09:03 --- src/Models/CellInt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Models/CellInt.cpp') 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; } -- cgit v1.3.1-23-gd82d