1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-31 12:13:34 +02:00

fix ArrayOutOfBoundsException

This commit is contained in:
Andrew Niefer 2004-08-13 14:50:27 +00:00
parent 8fde8e2822
commit 5bd71cea46

View file

@ -1132,6 +1132,7 @@ public class Scanner2 implements IScanner, IScannerData {
if( ++branchStackPos == branches.length ){ if( ++branchStackPos == branches.length ){
int [] temp = new int [ branches.length << 1 ]; int [] temp = new int [ branches.length << 1 ];
System.arraycopy( branches, 0, temp, 0, branches.length ); System.arraycopy( branches, 0, temp, 0, branches.length );
branches = temp;
} }
branches[branchStackPos] = BRANCH_IF; branches[branchStackPos] = BRANCH_IF;
return true; return true;