From 0e0527be819ba3406e9d726291bd57384b16641d Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Mon, 21 Nov 2011 17:23:54 -0800 Subject: [PATCH] Address Yury's comment. --- src/function.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/function.js b/src/function.js index 2f9b050dd..ef24736c1 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);