summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2017-09-11 19:21:11 +0900
committersuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2017-09-13 17:11:13 +0900
commit5d2e1ac3b679f4fb9649519d40d71d0f75fd0064 (patch)
treecbe30accb21f6a6c2ec3565e637be4746b17d7a4
parentfbde20e94bcb2ab8c9c2e2c58a00b9d61a117280 (diff)
downloadfreetype2-5d2e1ac3b679f4fb9649519d40d71d0f75fd0064.tar.gz
insert explict cast to FT_UInt32 when bitshifting for 32bit value.
note: long constant is too large for LP64 platforms.
-rw-r--r--src/pcf/pcf.h6
1 files 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