> I found these warnings when compiling FreeType 2.3.7 using Microsoft
> Visual C++ 6.0:
>
> s:\src\freetype-2.3.7\src\truetype\ttgload.c(408) : warning C4244: '=' :
> conversion from 'int ' to 'unsigned char ', possible loss of data
> s:\src\freetype-2.3.7\src\truetype\ttgload.c(443) : warning C4244: '=' :
> conversion from 'int ' to 'unsigned char ', possible loss of data
>
> They can be fixed by casting to FT_Byte as follows:
>
> line 408 becomes: *flag = (FT_Byte)(f & ~( 2 | 16 ));
> line 444 becomes: *flag = (FT_Byte)(f & FT_CURVE_TAG_ON);
A stupid compiler that is: `f' and `*flag' are both of type `unsigned
char'. Applied, thanks.
Werner
_______________________________________________
Freetype-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype-devel