[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] warnings in FreeType 2.3.7
From: |
Graham Asher |
Subject: |
[ft-devel] warnings in FreeType 2.3.7 |
Date: |
Wed, 1 Oct 2008 13:17:29 +0100 |
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);
Best regards,
Graham Asher
- [ft-devel] warnings in FreeType 2.3.7,
Graham Asher <=