From: Brendan Dahl Date: Tue, 22 Nov 2011 01:23:54 +0000 (-0800) Subject: Address Yury's comment. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0e0527be819ba3406e9d726291bd57384b16641d;p=pdf.js.git Address Yury's comment. --- diff --git a/src/function.js b/src/function.js index 2f9b050..ef24736 100644 --- a/src/function.js +++ b/src/function.js @@ -20,6 +20,7 @@ var PDFFunction = (function pdfFunction() { var array = []; var codeSize = 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 strBytes = str.getBytes((length * bps + 7) / 8);