"Sean McBride" <s...@rogue-research.com> 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. _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel