[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] int-not32-changes-2017 5d2e1ac 15/25: insert explict cast to
From: |
suzuki toshiya |
Subject: |
[freetype2] int-not32-changes-2017 5d2e1ac 15/25: insert explict cast to FT_UInt32 when bitshifting for 32bit value. |
Date: |
Wed, 13 Sep 2017 04:15:06 -0400 (EDT) |
branch: int-not32-changes-2017
commit 5d2e1ac3b679f4fb9649519d40d71d0f75fd0064
Author: suzuki toshiya <address@hidden>
Commit: suzuki toshiya <address@hidden>
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 f0390cb..98fbf63 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] int-not32-changes-2017 5d2e1ac 15/25: insert explict cast to FT_UInt32 when bitshifting for 32bit value.,
suzuki toshiya <=