Patch from Attila Szegedi <szegedia@freemail.hu> based on the suggestion from Grzegorz Lukasik <hauserx@gmail.com> to fix bug 292324 "ArrayIndexOutOfBoundsException while compiling a script".

git-svn-id: svn://10.0.0.236/trunk@175086 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
igor%mir2.org
2005-06-24 09:10:52 +00:00
parent dc33c1f75b
commit 26b5f933a0

View File

@@ -1521,6 +1521,10 @@ public class Interpreter
itsData.longJumps.put(offsetSite, jumpDestination);
offset = 0;
}
int deltaCapacity = offsetSite + 2 - itsData.itsICode.length;
if (deltaCapacity > 0) {
increaseICodeCapasity(deltaCapacity);
}
itsData.itsICode[offsetSite] = (byte)(offset >> 8);
itsData.itsICode[offsetSite + 1] = (byte)offset;
}