summaryrefslogtreecommitdiff
path: root/src/psaux
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2000-10-11 23:39:03 +0000
committerDavid Turner <david@freetype.org>2000-10-11 23:39:03 +0000
commit18ab99fa7d8b159774a560f85b891ca339378dd7 (patch)
tree9cc65c5c8e948a3aa9bf8b213c9034b19cd6d602 /src/psaux
parent47dcfcce39141a1635b0813b42b4617dcd4b766d (diff)
downloadfreetype2-18ab99fa7d8b159774a560f85b891ca339378dd7.tar.gz
fixed a subtle 64-bit problem that only appears with
Compaq C compiler (though it's really a bug)
Diffstat (limited to 'src/psaux')
-rw-r--r--src/psaux/t1decode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/psaux/t1decode.c b/src/psaux/t1decode.c
index 8bff10908..d17f9d79e 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;