From: Julian Viereck Date: Fri, 9 Sep 2011 15:47:12 +0000 (-0700) Subject: Adding back bug in constructInterpolatedFromIR to get refTest passing in openweb.pdf X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=342547831ddcd60dd5329ae61f06f7f8bef36144;p=pdf.js.git Adding back bug in constructInterpolatedFromIR to get refTest passing in openweb.pdf --- diff --git a/pdf.js b/pdf.js index c0bf1be..f41160e 100644 --- a/pdf.js +++ b/pdf.js @@ -6639,20 +6639,21 @@ var PDFFunction = (function() { for (var i = 0; i < length; ++i) diff.push(c1[i] - c0[i]); - return [ CONSTRUCT_INTERPOLATED, c0, diff, n ]; + return [ CONSTRUCT_INTERPOLATED, c0, diff, n, i ]; }, constructInterpolatedFromIR: function(IR) { var c0 = IR[1]; var diff = IR[2]; var n = IR[3]; + var i = IR[4]; return function(args) { var x = args[0]; var out = []; for (var j = 0; j < length; ++j) - out.push(c0[j] + (x^n * diff[j])); + out.push(c0[j] + (x^n * diff[i])); return out;