Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMarkus Schorn2008-04-15 09:52:50 -0400
committerMarkus Schorn2008-04-15 09:52:50 -0400
commit77a468323dc14c47a3bdb4d325885b9997409a08 (patch)
treef44279f92304099c621e639b44c38e6137e8e2a6 /core
parentb7ca58a629ee937f24583e167f244b86b9999306 (diff)
downloadorg.eclipse.cdt-77a468323dc14c47a3bdb4d325885b9997409a08.tar.gz
org.eclipse.cdt-77a468323dc14c47a3bdb4d325885b9997409a08.tar.xz
org.eclipse.cdt-77a468323dc14c47a3bdb4d325885b9997409a08.zip
Restrict references, 2nd try, bug 227110.
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
index 64c9c11ccdd..44d72946308 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
@@ -564,7 +564,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
lastToken= consume();
}
ICPPASTReferenceOperator refOp = createReferenceOperator();
- ((ASTNode) refOp).setOffsetAndLength(from, lastToken.getEndOffset());
+ ((ASTNode) refOp).setOffsetAndLength(from, lastToken.getEndOffset()-from);
collection.add(refOp);
return;
}

Back to the top