Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2013-09-10 16:15:21 -0400
committerSergey Prigogin2013-09-10 16:15:21 -0400
commit4e81f0fce230ff6a67fe1427a884cbd3a8340707 (patch)
tree7865f559653aa808acc456704ac843fc2eaf6776
parentf44bd4b318960412e01c1e41cb0a6c183be0c000 (diff)
downloadorg.eclipse.cdt-4e81f0fce230ff6a67fe1427a884cbd3a8340707.tar.gz
org.eclipse.cdt-4e81f0fce230ff6a67fe1427a884cbd3a8340707.tar.xz
org.eclipse.cdt-4e81f0fce230ff6a67fe1427a884cbd3a8340707.zip
Fixed a broken test.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPNamespaceScope.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/CPPNamespaceScope.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPNamespaceScope.java
index 1e21fcab3c..54c580a351 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPNamespaceScope.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPNamespaceScope.java
@@ -160,7 +160,7 @@ public class CPPNamespaceScope extends CPPScope implements ICPPInternalNamespace
IScope scope= this;
IASTName[] segments= name.getNames();
try {
- for (int i= segments.length; --i >= 0;) {
+ for (int i= segments.length - 1; --i >= 0;) {
if (scope == null)
return false;
IName scopeName = scope.getScopeName();

Back to the top