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:
parent
b088f8e78b
commit
b2a6149858
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue