shithub: freetype+ttf2subf

Download patch

ref: 67d301f305b2c10f97445f38a4dd2ec7d0241515
parent: 7a4fda8821e8fc48167ff3603f7a0b323fa46963
author: Werner Lemberg <[email protected]>
date: Wed Jun 14 00:13:59 EDT 2000

Fixed the PACK() macro.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/base/ftgrays.c
+++ b/src/base/ftgrays.c
@@ -947,8 +947,8 @@
 
   /* a macro comparing two cell pointers.  Returns true if a <= b. */
 #if 1
-#define PACK( a )          ( ( (long)(a)->y << 16 ) | (a)->x )
-#define LESS_THAN( a, b )  ( PACK(a) < PACK(b) )
+#define PACK( a )          ( ( (long)(a)->y << 16 ) + (a)->x )
+#define LESS_THAN( a, b )  ( PACK( a ) < PACK( b ) )
 #else /* 1 */
 #define LESS_THAN( a, b )  ( (a)->y < (b)->y || \
                              ( (a)->y == (b)->y && (a)->x < (b)->x ) )