Fixed the PACK() macro.

VER-2-0-4-PATCH
Werner Lemberg 25 years ago
parent 7a4fda8821
commit 67d301f305
  1. 4
      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 ) )

Loading…
Cancel
Save