* src/sfnt/ttcmap.c (tt_cmap4_char_map_binary,
tt_cmap12_char_map_binary): Fix compiler warnings.
This commit is contained in:
parent
a0911343ee
commit
a28bc4c71d
|
@ -1,3 +1,8 @@
|
||||||
|
2005-11-30 Chia-I Wu <b90201047@ntu.edu.tw>
|
||||||
|
|
||||||
|
* src/sfnt/ttcmap.c (tt_cmap4_char_map_binary,
|
||||||
|
tt_cmap12_char_map_binary): Fix compiler warnings.
|
||||||
|
|
||||||
2005-11-29 Chia-I Wu <b90201047@ntu.edu.tw>
|
2005-11-29 Chia-I Wu <b90201047@ntu.edu.tw>
|
||||||
|
|
||||||
Major update to distinguish between unsorted and overlapped segments
|
Major update to distinguish between unsorted and overlapped segments
|
||||||
|
|
|
@ -1044,10 +1044,14 @@
|
||||||
p = cmap->data + 6;
|
p = cmap->data + 6;
|
||||||
num_segs2 = FT_PAD_FLOOR( TT_PEEK_USHORT( p ), 2 );
|
num_segs2 = FT_PAD_FLOOR( TT_PEEK_USHORT( p ), 2 );
|
||||||
|
|
||||||
|
if ( !num_segs2 )
|
||||||
|
return 0;
|
||||||
|
|
||||||
num_segs = num_segs2 >> 1;
|
num_segs = num_segs2 >> 1;
|
||||||
|
|
||||||
if ( !num_segs )
|
/* make compiler happy */
|
||||||
return 0;
|
mid = num_segs;
|
||||||
|
end = 0xFFFFU;
|
||||||
|
|
||||||
if ( next )
|
if ( next )
|
||||||
charcode++;
|
charcode++;
|
||||||
|
@ -2053,6 +2057,10 @@
|
||||||
if ( !num_groups )
|
if ( !num_groups )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
/* make compiler happy */
|
||||||
|
mid = num_groups;
|
||||||
|
end = 0xFFFFFFFFUL;
|
||||||
|
|
||||||
if ( next )
|
if ( next )
|
||||||
char_code++;
|
char_code++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue