CFF Subsetting: fix integer encoding bug

Bug report at https://bugzilla.mozilla.org/show_bug.cgi?id=368668
This commit is contained in:
Adrian Johnson 2007-08-02 21:25:46 +09:30
parent ef93f1897c
commit f52aa4c13e

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;