[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bugs, bugs, bugs.
From: |
Werner LEMBERG |
Subject: |
Re: Bugs, bugs, bugs. |
Date: |
Mon, 31 Jul 2000 18:56:16 +0200 (CEST) |
> FT_FRAME_USHORT( num_tables ),
>
> The error message is:
>
> Error : illegal constant expression
>
> 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 ;-).
Basically, it isn't `hackish'. Previously, the macro directly
converted a (char *) to FT_UShort -- some compilers dislike this.
Now, we have a substraction of two (char *) pointers which always
yields an integer.
How does your compiler defines NULL? Please try (void*) instead of
(char*) for both pointers.
Werner
- Bugs, bugs, bugs., Werner LEMBERG, 2000/07/31
- Re: Bugs, bugs, bugs., Just van Rossum, 2000/07/31
- Re: Bugs, bugs, bugs.,
Werner LEMBERG <=
- Re: Bugs, bugs, bugs., Joerg Pommnitz, 2000/07/31
- Re: Bugs, bugs, bugs., Werner LEMBERG, 2000/07/31
- Re: Bugs, bugs, bugs., Just van Rossum, 2000/07/31