sfnt: Cast a character code to FT_UInt32 for LP64 system.

int-not32-changes
suzuki toshiya 16 years ago
parent 13cdd027d2
commit 2abe8d63fc
  1. 8
      ChangeLog
  2. 4
      src/sfnt/ttcmap.c

@ -1,3 +1,11 @@
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Cast a character code to FT_UInt32 for LP64 system.
* src/sfnt/ttcmap.c (tt_cmap4_init, tt_cmap4_next):
Insert the casts from unsigned long constant to
FT_UInt32.
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Extend TT_BDF->strings_size to FT_ULong for huge BDF.

@ -659,7 +659,7 @@
p = table + 6;
cmap->num_ranges = FT_PEEK_USHORT( p ) >> 1;
cmap->cur_charcode = 0xFFFFFFFFUL;
cmap->cur_charcode = (FT_UInt32)0xFFFFFFFFUL;
cmap->cur_gindex = 0;
return SFNT_Err_Ok;
@ -799,7 +799,7 @@
}
Fail:
cmap->cur_charcode = 0xFFFFFFFFUL;
cmap->cur_charcode = (FT_UInt32)0xFFFFFFFFUL;
cmap->cur_gindex = 0;
}

Loading…
Cancel
Save