Browse Source

Fix weird insertion.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270635 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
69f90db91b
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      src/main/org/apache/tools/bzip2/CBZip2OutputStream.java

+ 4
- 8
src/main/org/apache/tools/bzip2/CBZip2OutputStream.java View File

@@ -701,9 +701,8 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants {
Calculate the cost of this group as coded
by each of the coding tables.
*/
for (t = 0; t < nGroups; t++) { {
cost[t
}] = 0;
for (t = 0; t < nGroups; t++) {
cost[t] = 0;
}

if (nGroups == 6) {
@@ -797,8 +796,7 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants {
pos[j] = tmp2;
}
pos[0] = tmp;
} selectorMtf[i] = (char) {j;
selectorMtf[i] = (char)j;
}
}

@@ -1248,9 +1246,7 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants {
vv = runningOrder[i];
j = i;
while ((ftab[((runningOrder[j-h])+1) << 8]
- ftab[(runningOrder[j-h]) {
} << 8]) >
- ftab[(runningOrder[j-h]) << 8]) >
(ftab[((vv)+1) << 8] - ftab[(vv) << 8])) {
runningOrder[j] = runningOrder[j-h];
j = j - h;


Loading…
Cancel
Save