[Pkg-javascript-commits] [pdf.js] 39/139: Fix typed array assignment in the |constructPostScriptFromIRResult| function (issue 5470)

David Prévot taffit at moszumanska.debian.org
Fri Jan 9 21:18:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 1abad5f29064055ff336d0260fa0689e04d3d67d
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Tue Nov 4 12:17:27 2014 +0100

    Fix typed array assignment in the |constructPostScriptFromIRResult| function (issue 5470)
---
 src/core/function.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/function.js b/src/core/function.js
index d8b7af7..4ea70bb 100644
--- a/src/core/function.js
+++ b/src/core/function.js
@@ -433,7 +433,7 @@ var PDFFunction = (function PDFFunctionClosure() {
 
         var cachedValue = cache[key];
         if (cachedValue !== undefined) {
-          cachedValue.set(dest, destOffset);
+          dest.set(cachedValue, destOffset);
           return;
         }
 
@@ -457,7 +457,7 @@ var PDFFunction = (function PDFFunctionClosure() {
           cache_available--;
           cache[key] = output;
         }
-        output.set(dest, destOffset);
+        dest.set(output, destOffset);
       };
     }
   };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list