CFF Subsetting: fix integer encoding bug

Bug report at https://bugzilla.mozilla.org/show_bug.cgi?id=368668
(cherry picked from commit f52aa4c13e)
This commit is contained in:
Adrian Johnson 2007-08-02 21:25:46 +09:30 committed by Carl Worth
parent 553d8a9319
commit a76f8653d6

View file

@ -158,7 +158,7 @@ encode_integer (unsigned char *p, int i)
i = -i - 108;
*p++ = (i >> 8)+ 251;
*p++ = i & 0xff;
} else if (i >= -1131 && i <= -108) {
} else if (i >= -32768 && i <= 32767) {
*p++ = 28;
*p++ = (i >> 8) & 0xff;
*p++ = i & 0xff;