shithub: freetype+ttf2subf

Download patch

ref: b89fb71ce6c4795d4e6c5789fe4004c21e694905
parent: a7096374eeb138d78b86c07a652e0a098ae17775
author: David Turner <[email protected]>
date: Wed Oct 11 19:39:03 EDT 2000

fixed a subtle 64-bit problem that only appears with
Compaq C compiler (though it's really a bug)

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -482,10 +482,10 @@
           goto Syntax_Error;
         }
 
-        value = ( (FT_Long)ip[0] << 24 ) |
-                ( (FT_Long)ip[1] << 16 ) |
-                ( (FT_Long)ip[2] << 8  ) |
-                           ip[3];
+        value = (FT_Int32)( ((FT_Long)ip[0] << 24) |
+                            ((FT_Long)ip[1] << 16) |
+                            ((FT_Long)ip[2] << 8 ) |
+                                      ip[3] );
         ip += 4;
         break;