freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] int-not32-changes-2017 ebaa282 04/25: cpp-conditionalize a t


From: suzuki toshiya
Subject: [freetype2] int-not32-changes-2017 ebaa282 04/25: cpp-conditionalize a too long string > 64k, because it is always false on 16bit system.
Date: Wed, 13 Sep 2017 04:15:04 -0400 (EDT)

branch: int-not32-changes-2017
commit ebaa2828742c893f6095fd748ae3828624c9d2fb
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++ )
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]