freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] freetype compilation warnings


From: Dmitry Timoshkov
Subject: Re: [ft-devel] freetype compilation warnings
Date: Mon, 11 Jan 2010 11:04:11 -0600

"Sean McBride" <address@hidden> wrote:

> On 1/9/10 6:40 AM, Werner LEMBERG said:
> 
> >What about a double cast?
> >
> >  #define ALL_POINTS  (FT_UShort*)(void*)( -1 )
> >
> >Since NULL is normally defined as `(void*)0' I can imagine that the
> >above works.  Can you try this, please?
> 
> That did not work. :( The warning only changed to:
> 
> warning C4306: 'type cast' : conversion from 'int' to 'void *' of greater size

Does it work better this way:

#define ALL_POINTS  (FT_UShort*)(void*)( ~0 )

or

#define ALL_POINTS  (FT_UShort*)(void*)( ~0UL )

?

-- 
Dmitry.




reply via email to

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