Commit c4b5127b742cc9030c14f67ab545f5d1105523d2

Alexei Podtelezhnikov 2023-03-05T00:31:58

* src/cff/cffparse.c (cff_parser_run): Thinko.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/cff/cffparse.c b/src/cff/cffparse.c
index 5a9d748..7476aed 100644
--- a/src/cff/cffparse.c
+++ b/src/cff/cffparse.c
@@ -1363,8 +1363,8 @@
             }
             else if ( -1131 <= num && num <= -108 )
             {
-              *q++ = (FT_Byte)( ( ( 108 - num ) >> 8 ) + 251 );
-              *q++ = (FT_Byte)( ( 108 - num ) & 0xFF );
+              *q++ = (FT_Byte)( ( ( -num - 108 ) >> 8 ) + 251 );
+              *q++ = (FT_Byte)( ( -num - 108) & 0xFF );
             }
             else
             {