Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2004-07-16 09:45:21 -0400
committerAndrew Niefer2004-07-16 09:45:21 -0400
commit628114dbeb6f8b778069ea6636dce20c3fd4dda6 (patch)
treed657438211a8306bf000b4d1638685df7cc2a173
parent04f9e243c8d2e0f3431808768fa030d4a296a84d (diff)
downloadorg.eclipse.cdt-628114dbeb6f8b778069ea6636dce20c3fd4dda6.tar.gz
org.eclipse.cdt-628114dbeb6f8b778069ea6636dce20c3fd4dda6.tar.xz
org.eclipse.cdt-628114dbeb6f8b778069ea6636dce20c3fd4dda6.zip
fix double increment
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/CharArrayMap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/CharArrayMap.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/CharArrayMap.java
index ab3a4ad5d4..851ad3bc2a 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/CharArrayMap.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/CharArrayMap.java
@@ -106,7 +106,7 @@ public abstract class CharArrayMap {
}
// nope, add it in
- if (++currEntry >= keyTable.length){
+ if (currEntry + 1 >= keyTable.length){
//need to recompute hash for this add, recurse
resize();
return add( buffer, start, len );

Back to the top