[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] int-not32-changes-2017 abc8635 03/23: cpp-conditionalize a t
From: |
suzuki toshiya |
Subject: |
[freetype2] int-not32-changes-2017 abc8635 03/23: cpp-conditionalize a too long string > 64k, because it is always false on 16bit system. |
Date: |
Tue, 12 Sep 2017 22:13:33 -0400 (EDT) |
branch: int-not32-changes-2017
commit abc863522e76188e6383834617c8d155f6522950
Author: suzuki toshiya <address@hidden>
Commit: suzuki toshiya <address@hidden>
cpp-conditionalize a too long string > 64k, because it is always false on
16bit system.
---
src/type1/t1afm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/type1/t1afm.c b/src/type1/t1afm.c
index 11a2646..f4f1ac7 100644
--- a/src/type1/t1afm.c
+++ b/src/type1/t1afm.c
@@ -60,9 +60,11 @@
FT_Int n;
+#if FT_UINT_MAX > 0xFFFFU
/* PS string/name length must be < 16-bit */
if ( len > 0xFFFFU )
return 0;
+#endif
for ( n = 0; n < type1->num_glyphs; n++ )
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] int-not32-changes-2017 abc8635 03/23: cpp-conditionalize a too long string > 64k, because it is always false on 16bit system.,
suzuki toshiya <=