mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-01 12:50:45 +02:00
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:
parent
553d8a9319
commit
a76f8653d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue