diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 44258415d..6b711b9cd 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -6526,7 +6526,7 @@ bool Tokenizer::simplifyKnownVariablesGetData(unsigned int varid, Token **_tok2, } // Add a '.0' to a decimal value and therefore convert it to an floating point number. - else if (MathLib::isDec(tok2->tokAt(2)->str()) && floatvar) { + else if (MathLib::isDec(tok2->strAt(2)) && floatvar) { value += ".0"; }