mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-07 08:15:48 +02:00
oops. fix ArrayOutOfBoundsException
This commit is contained in:
parent
64f93294af
commit
01798aba6b
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue