From 5d2e1ac3b679f4fb9649519d40d71d0f75fd0064 Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Mon, 11 Sep 2017 19:21:11 +0900 Subject: [PATCH] insert explict cast to FT_UInt32 when bitshifting for 32bit value. note: long constant is too large for LP64 platforms. --- src/pcf/pcf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pcf/pcf.h b/src/pcf/pcf.h index f0390cb1e..98fbf63a3 100644 --- a/src/pcf/pcf.h +++ b/src/pcf/pcf.h @@ -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