diff options
author | Werner Lemberg <wl@gnu.org> | 2001-03-10 17:07:42 +0000 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2001-03-10 17:07:42 +0000 |
commit | 1b20ae6162187aeee02e259d6d2da3e3e6c5ce43 (patch) | |
tree | a4ce584e1a63d045519a0f4e4bd1cd6c46e9e9ab /src/psaux | |
parent | 0778f2bf183cf0c9c1b11266383a44a3f0eca90a (diff) | |
download | freetype2-1b20ae6162187aeee02e259d6d2da3e3e6c5ce43.tar.gz |
* src/*/*.c: Added many casts to make code more 64bit-safe.
Diffstat (limited to 'src/psaux')
-rw-r--r-- | src/psaux/psobjs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c index 3759d99a0..754626131 100644 --- a/src/psaux/psobjs.c +++ b/src/psaux/psobjs.c @@ -84,7 +84,7 @@ void shift_elements( PS_Table* table, FT_Byte* old_base ) { - FT_Long delta = table->block - old_base; + FT_Long delta = (FT_Long)( table->block - old_base ); FT_Byte** offset = table->elements; FT_Byte** limit = offset + table->max_elems; @@ -412,7 +412,7 @@ cur++; } - *pnum_tokens = cur - tokens; + *pnum_tokens = (FT_Int)( cur - tokens ); parser->cursor = old_cursor; parser->limit = old_limit; @@ -847,7 +847,7 @@ case t1_field_string: { FT_Memory memory = parser->memory; - FT_UInt len = limit-cur; + FT_UInt len = (FT_UInt)( limit - cur ); if ( *(FT_String**)q ) |