mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +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
4
external/cmapscompress/compress.js
vendored
4
external/cmapscompress/compress.js
vendored
|
@ -204,7 +204,7 @@ function parseCMap(binaryData) {
|
|||
bufferSize = 0;
|
||||
while (s.length < lengthInChars) {
|
||||
while (bufferSize < 4 && stack.length > 0) {
|
||||
buffer = (stack.pop() << bufferSize) | buffer;
|
||||
buffer |= stack.pop() << bufferSize;
|
||||
bufferSize += 7;
|
||||
}
|
||||
s = toHexDigit(buffer & 15) + s;
|
||||
|
@ -375,7 +375,7 @@ function writeNumber(n) {
|
|||
let i = n.length;
|
||||
while (i > 0) {
|
||||
--i;
|
||||
buffer = (fromHexDigit(n[i]) << bufferSize) | buffer;
|
||||
buffer |= fromHexDigit(n[i]) << bufferSize;
|
||||
bufferSize += 4;
|
||||
if (bufferSize >= 7) {
|
||||
s = writeByte((buffer & 0x7f) | (s.length > 0 ? 0x80 : 0)) + s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue