insert explict cast to FT_UInt32 when bitshifting for 32bit value.

note: long constant is too large for LP64 platforms.
This commit is contained in:
suzuki toshiya 2017-09-11 19:21:11 +09:00
parent fbde20e94b
commit 5d2e1ac3b6
1 changed files with 3 additions and 3 deletions

View File

@ -177,9 +177,9 @@ FT_BEGIN_HEADER
#define LSBFirst 0
#define MSBFirst 1
#define PCF_FILE_VERSION ( ( 'p' << 24 ) | \
( 'c' << 16 ) | \
( 'f' << 8 ) | 1 )
#define PCF_FILE_VERSION ( ((FT_UInt32)'p' << 24 ) | \
((FT_UInt32)'c' << 16 ) | \
((FT_UInt32)'f' << 8 ) | (FT_UInt32)1 )
#define PCF_FORMAT_MASK 0xFFFFFF00UL
#define PCF_DEFAULT_FORMAT 0x00000000UL