fixed a subtle 64-bit problem that only appears with

Compaq C compiler (though it's really a bug)
This commit is contained in:
David Turner 2000-10-11 23:39:03 +00:00
parent a7096374ee
commit b89fb71ce6
1 changed files with 4 additions and 4 deletions

View File

@ -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;