mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Enable the prefer-exponentiation-operator
ESLint rule
Please see https://eslint.org/docs/rules/prefer-exponentiation-operator for additional information.
This commit is contained in:
parent
c3f4690bde
commit
e011be037e
6 changed files with 16 additions and 15 deletions
|
@ -1434,7 +1434,7 @@ var JpxImage = (function JpxImageClosure() {
|
|||
// calculate quantization coefficient (Section E.1.1.1)
|
||||
var delta = reversible
|
||||
? 1
|
||||
: Math.pow(2, precision + gainLog2 - epsilon) * (1 + mu / 2048);
|
||||
: 2 ** (precision + gainLog2 - epsilon) * (1 + mu / 2048);
|
||||
var mb = guardBits + epsilon - 1;
|
||||
|
||||
// In the first resolution level, copyCoefficients will fill the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue