Mike Hearn mike@navi.cx writes:
On Sat, 2004-08-07 at 23:16 +0900, Dmitry Timoshkov wrote:
This can't work because instead of logical boolean results you compare binary flags which are different:
#define FT_FACE_FLAG_FIXED_WIDTH ( 1L << 2 )
#define MONO_FONT 0x08
You are right. I will watch out for this in future! Here is a fixed patch.
The correct way to compare booleans in C is to invert them, i.e. instead of (a == b) use (!a == !b). You must not rely on booleans being always 0 or 1.