Merge pull request #7279 from yurydelendik/cff-encodeint

Fixes unneed conversion to array in CFF encodeInteger.
This commit is contained in:
Yury Delendik 2016-05-02 16:34:54 -05:00
commit 7aff695969

View File

@ -1382,7 +1382,7 @@ var CFFCompiler = (function CFFCompilerClosure() {
if (value >= -107 && value <= 107) {
code = [value + 139];
} else if (value >= 108 && value <= 1131) {
value = [value - 108];
value = value - 108;
code = [(value >> 8) + 247, value & 0xFF];
} else if (value >= -1131 && value <= -108) {
value = -value - 108;