1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Patch for Devin Steffler.

Fixed Bug 104276 -  	LocationMap#createASTIf() line: 1566 has a double negative that is used to calculate length
This commit is contained in:
John Camelon 2005-07-18 23:25:07 +00:00
parent b088f8e78b
commit b2a6149858

View file

@ -1564,7 +1564,7 @@ public class LocationMap implements ILocationResolver, IScannerPreprocessorLog {
private IASTPreprocessorStatement createASTIf(_If i) {
IASTPreprocessorIfStatement result = new ASTIf(i.taken);
((ASTNode) result).setOffsetAndLength(i.context_directive_start,
i.context_directive_end - -i.context_directive_start);
i.context_directive_end - i.context_directive_start);
((ScannerASTNode) result).setParent(rootNode);
((ScannerASTNode) result).setPropertyInParent(IASTTranslationUnit.PREPROCESSOR_STATEMENT);
return result;