freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bugs, bugs, bugs.


From: Just van Rossum
Subject: Re: Bugs, bugs, bugs.
Date: Mon, 31 Jul 2000 18:44:06 +0100

Speaking of bugs; after doing a CVS update my compiler now complains about
lines like:

        FT_FRAME_USHORT( num_tables ),

The error message is:

Error   : illegal constant expression
ttload.c line 183   _tables ), (FT_UShort)(
(char*)&(((SFNT_Header*)0)->num_tables) - (char*)0 ) }

I traced it down to this macro:

#define FT_FIELD_OFFSET( f ) \
          (FT_UShort)( (char*)&(((FT_STRUCTURE*)0)->f) - (char*)0 )

It's complaining about the (char*)0 bit.

I have no idea how to fix this correctly (it looks pretty hack-ish to me ;-).

What to do?

Just





reply via email to

[Prev in Thread] Current Thread [Next in Thread]