mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Address Yury's comment.
This commit is contained in:
parent
408dd5d403
commit
0e0527be81
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ var PDFFunction = (function pdfFunction() {
|
||||||
var array = [];
|
var array = [];
|
||||||
var codeSize = 0;
|
var codeSize = 0;
|
||||||
var codeBuf = 0;
|
var codeBuf = 0;
|
||||||
|
// 32 is a valid bps so shifting won't work
|
||||||
var sampleMul = 1.0 / (Math.pow(2.0, bps) - 1);
|
var sampleMul = 1.0 / (Math.pow(2.0, bps) - 1);
|
||||||
|
|
||||||
var strBytes = str.getBytes((length * bps + 7) / 8);
|
var strBytes = str.getBytes((length * bps + 7) / 8);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue