Address Yury's comment.

This commit is contained in:
Brendan Dahl 2011-11-21 17:23:54 -08:00
parent 408dd5d403
commit 0e0527be81

View File

@ -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);