From 5a8181d425c41d0203369fe8934a97ac11903c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 8 Aug 2010 09:25:09 +0200 Subject: [PATCH] Tokenizer: 'simplifyCalculations();' should have the same results as 'while (simplifyCalculations());' --- lib/tokenize.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index dc60021eb..ae1964c5a 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -3579,8 +3579,7 @@ bool Tokenizer::simplifyTokenList() } // Simplify simple calculations.. - while (simplifyCalculations()) - ; + simplifyCalculations(); // Replace "*(str + num)" => "str[num]" for (Token *tok = _tokens; tok; tok = tok->next())