diff --git a/simplecpp.cpp b/simplecpp.cpp index 7c4a6c4d..366a5f0b 100755 --- a/simplecpp.cpp +++ b/simplecpp.cpp @@ -949,7 +949,7 @@ void simplecpp::TokenList::combineOperators() if (tok->previous && tok->previous->number && sameline(tok->previous, tok)) { tok->setstr(tok->previous->str() + '.'); deleteToken(tok->previous); - if (isFloatSuffix(tok->next) || (tok->next && tok->next->startsWithOneOf("AaBbCcDdEeFfPp"))) { + if (sameline(tok, tok->next) && (isFloatSuffix(tok->next) || (tok->next && tok->next->startsWithOneOf("AaBbCcDdEeFfPp")))) { tok->setstr(tok->str() + tok->next->str()); deleteToken(tok->next); }