Apache OpenOffice (AOO) Bugzilla – Attachment #6236: Proposed fix. for issue #14512
newbl._data[0] = (byte)0xFF;
// count entries
assert(_free > 0 && _free <= _blockSize);
tryAssert(_free > 0 && _free <= _blockSize);
for (count = i = 0; i < _free; count++, i += _vecLen+1-(_data[i]&0xFF))
;
half = (int)(count*SplitRatio + 1);
return accessBlock(bl.integerAt(index*4));
}
public static void assert(boolean assertion) {
public static void tryAssert(boolean assertion) {
if (assertion == false)
System.err.println("assertion failed");
else
{
assert(stack.size() == 0);
tryAssert(stack.size() == 0);
return false;