mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix the remaining ESLint operator-assignment
errors
This commit is contained in:
parent
901b24e8af
commit
819be0e78b
5 changed files with 6 additions and 6 deletions
|
@ -21,7 +21,7 @@ class Ascii85Stream extends DecodeStream {
|
|||
// Most streams increase in size when decoded, but Ascii85 streams
|
||||
// typically shrink by ~20%.
|
||||
if (maybeLength) {
|
||||
maybeLength = 0.8 * maybeLength;
|
||||
maybeLength *= 0.8;
|
||||
}
|
||||
super(maybeLength);
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class AsciiHexStream extends DecodeStream {
|
|||
// Most streams increase in size when decoded, but AsciiHex streams shrink
|
||||
// by 50%.
|
||||
if (maybeLength) {
|
||||
maybeLength = 0.5 * maybeLength;
|
||||
maybeLength *= 0.5;
|
||||
}
|
||||
super(maybeLength);
|
||||
|
||||
|
|
|
@ -534,7 +534,7 @@ const BinaryCMapReader = (function BinaryCMapReaderClosure() {
|
|||
bufferSize = 0;
|
||||
while (i >= 0) {
|
||||
while (bufferSize < 8 && stack.length > 0) {
|
||||
buffer = (stack[--sp] << bufferSize) | buffer;
|
||||
buffer |= stack[--sp] << bufferSize;
|
||||
bufferSize += 7;
|
||||
}
|
||||
num[i] = buffer & 255;
|
||||
|
|
|
@ -1088,7 +1088,7 @@ function decodeHalftoneRegion(
|
|||
bit = 0;
|
||||
patternIndex = 0;
|
||||
for (j = bitsPerValue - 1; j >= 0; j--) {
|
||||
bit = grayScaleBitPlanes[j][mg][ng] ^ bit; // Gray decoding
|
||||
bit ^= grayScaleBitPlanes[j][mg][ng]; // Gray decoding
|
||||
patternIndex |= bit << j;
|
||||
}
|
||||
patternBitmap = patterns[patternIndex];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue