From: Julian Viereck Date: Thu, 8 Sep 2011 23:22:06 +0000 (-0700) Subject: Fix constructInterpolatedFromIR + fix indexing i that should be j X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2b7ff49d8d4a7eca62498a14447c7b5fafb859d6;p=pdf.js.git Fix constructInterpolatedFromIR + fix indexing i that should be j --- diff --git a/pdf.js b/pdf.js index 16d6009..b5e6fbf 100644 --- a/pdf.js +++ b/pdf.js @@ -6640,19 +6640,20 @@ var PDFFunction = (function() { for (var i = 0; i < length; ++i) diff.push(c1[i] - c0[i]); - return [ CONSTRUCT_INTERPOLATED, c0, diff ]; + return [ CONSTRUCT_INTERPOLATED, c0, diff, n ]; }, constructInterpolatedFromIR: function(IR) { - var c0 = IR[1]; + var c0 = IR[1]; var diff = IR[2]; + var n = IR[3]; return function(args) { var x = args[0]; var out = []; for (var j = 0; j < length; ++j) - out.push(c0[j] + (x^n * diff[i])); + out.push(c0[j] + (x^n * diff[j])); return out;