Commit b89fb71ce6c4795d4e6c5789fe4004c21e694905

David Turner 2000-10-11T23:39:03

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/psaux/t1decode.c b/src/psaux/t1decode.c
index 8bff109..d17f9d7 100644
--- 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;