int p = 1;
while ((c & 0x80) != 0) {
c = dataBuf[posPtr + p++] & 0xff;
- sz += (c & 0x7f) << shift;
+ sz += ((long) (c & 0x7f)) << shift;
shift += 7;
}
int shift = 4;
while ((c & 0x80) != 0) {
c = dataBuf[ptr++] & 0xff;
- sz += (c & 0x7f) << shift;
+ sz += ((long) (c & 0x7f)) << shift;
shift += 7;
}
int shift = 4;
while ((c & 0x80) != 0) {
c = dataBuf[ptr++] & 0xff;
- inflatedSize += (c & 0x7f) << shift;
+ inflatedSize += ((long) (c & 0x7f)) << shift;
shift += 7;
}
int headerCnt = 1;
while ((c & 0x80) != 0) {
c = buf[headerCnt++] & 0xff;
- inflatedLength += (c & 0x7f) << shift;
+ inflatedLength += ((long) (c & 0x7f)) << shift;
shift += 7;
}
int p = 1;
while ((c & 0x80) != 0) {
c = ib[p++] & 0xff;
- sz += (c & 0x7f) << shift;
+ sz += ((long) (c & 0x7f)) << shift;
shift += 7;
}
int p = 1;
while ((c & 0x80) != 0) {
c = ib[p++] & 0xff;
- sz += (c & 0x7f) << shift;
+ sz += ((long) (c & 0x7f)) << shift;
shift += 7;
}
int headerCnt = 1;
while ((c & 0x80) != 0) {
c = buf[headerCnt++] & 0xff;
- inflatedLength += (c & 0x7f) << shift;
+ inflatedLength += ((long) (c & 0x7f)) << shift;
shift += 7;
}
int p = 1;
while ((c & 0x80) != 0) {
c = ib[p++] & 0xff;
- sz += (c & 0x7f) << shift;
+ sz += ((long) (c & 0x7f)) << shift;
shift += 7;
}
int p = 1;
while ((c & 0x80) != 0) {
c = ib[p++] & 0xff;
- sz += (c & 0x7f) << shift;
+ sz += ((long) (c & 0x7f)) << shift;
shift += 7;
}
int p = 1;
while ((c & 0x80) != 0) {
c = hdr[p++] & 0xff;
- size += (c & 0x7f) << shift;
+ size += ((long) (c & 0x7f)) << shift;
shift += 7;
}
int p = 1;
while ((c & 0x80) != 0) {
c = hdr[p++] & 0xff;
- size += (c & 0x7f) << shift;
+ size += ((long) (c & 0x7f)) << shift;
shift += 7;
}
return size;
int c, shift = 0;
do {
c = delta[p++] & 0xff;
- baseLen |= (c & 0x7f) << shift;
+ baseLen |= ((long) (c & 0x7f)) << shift;
shift += 7;
} while ((c & 0x80) != 0);
return baseLen;
int shift = 0;
do {
c = delta[p++] & 0xff;
- resLen |= (c & 0x7f) << shift;
+ resLen |= ((long) (c & 0x7f)) << shift;
shift += 7;
} while ((c & 0x80) != 0);
return resLen;
int c, shift = 0;
do {
c = delta[deltaPtr++] & 0xff;
- baseLen |= (c & 0x7f) << shift;
+ baseLen |= ((long) (c & 0x7f)) << shift;
shift += 7;
} while ((c & 0x80) != 0);
if (base.length != baseLen)
shift = 0;
do {
c = delta[deltaPtr++] & 0xff;
- resLen |= (c & 0x7f) << shift;
+ resLen |= ((long) (c & 0x7f)) << shift;
shift += 7;
} while ((c & 0x80) != 0);
int c, shift = 0;
do {
c = delta[deltaPtr++] & 0xff;
- baseLen |= (c & 0x7f) << shift;
+ baseLen |= ((long) (c & 0x7f)) << shift;
shift += 7;
} while ((c & 0x80) != 0);
shift = 0;
do {
c = delta[deltaPtr++] & 0xff;
- resLen |= (c & 0x7f) << shift;
+ resLen |= ((long) (c & 0x7f)) << shift;
shift += 7;
} while ((c & 0x80) != 0);
int c, shift = 0;
do {
c = cmdbuf[cmdptr++] & 0xff;
- baseSize |= (c & 0x7f) << shift;
+ baseSize |= ((long) (c & 0x7f)) << shift;
shift += 7;
} while ((c & 0x80) != 0);
shift = 0;
do {
c = cmdbuf[cmdptr++] & 0xff;
- resultSize |= (c & 0x7f) << shift;
+ resultSize |= ((long) (c & 0x7f)) << shift;
shift += 7;
} while ((c & 0x80) != 0);
if ((cmd & 0x04) != 0)
copyOffset |= (cmdbuf[cmdptr++] & 0xff) << 16;
if ((cmd & 0x08) != 0)
- copyOffset |= (cmdbuf[cmdptr++] & 0xff) << 24;
+ copyOffset |= ((long) (cmdbuf[cmdptr++] & 0xff)) << 24;
copySize = 0;
if ((cmd & 0x10) != 0)
while ((c & 0x80) != 0) {
c = readFrom(Source.DATABASE);
hdrBuf[hdrPtr++] = (byte) c;
- sz += (c & 0x7f) << shift;
+ sz += ((long) (c & 0x7f)) << shift;
shift += 7;
}
info.size = sz;
while ((c & 0x80) != 0) {
c = readFrom(Source.INPUT);
hdrBuf[hdrPtr++] = (byte) c;
- sz += (c & 0x7f) << shift;
+ sz += ((long) (c & 0x7f)) << shift;
shift += 7;
}