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: Sean McBride
Subject: Re: [ft-devel] freetype compilation warnings
Date: Mon, 11 Jan 2010 12:28:12 -0500

On 1/11/10 11:04 AM, Dmitry Timoshkov 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 )

I don't have the compiler in question, so the only way for me to test is
commit the change to VTK CVS then wait for the next automated nightly
build.  :(

Anyone here have Visual Studio?

--
____________________________________________________________
Sean McBride, B. Eng                 address@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada






reply via email to

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