freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] warnings in FreeType 2.3.7


From: Werner LEMBERG
Subject: Re: [ft-devel] warnings in FreeType 2.3.7
Date: Thu, 02 Oct 2008 12:42:26 +0200 (CEST)

> 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




reply via email to

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