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 [email protected] Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Freetype-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype-devel
