From e0932ba24bca208e30671029132591a6edd0e34d Mon Sep 17 00:00:00 2001 From: Jjgod Jiang Date: Sat, 9 Aug 2014 20:33:55 +0000 Subject: dvipdfm-x: Fix warnings handling subst glyphs git-svn-id: svn://tug.org/texlive/trunk@34886 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipdfm-x/tt_cmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Build/source/texk') diff --git a/Build/source/texk/dvipdfm-x/tt_cmap.c b/Build/source/texk/dvipdfm-x/tt_cmap.c index d0e8af6db68..e2602319c14 100644 --- a/Build/source/texk/dvipdfm-x/tt_cmap.c +++ b/Build/source/texk/dvipdfm-x/tt_cmap.c @@ -1006,7 +1006,7 @@ add_to_cmap_if_used (CMap *cmap, * There are problem when two Unicode code is mapped to * single glyph... */ - used_chars[gid / 8] &= ~(1 << (7 - (gid % 8))); + used_chars[cid / 8] &= ~(1 << (7 - (cid % 8))); } } @@ -1076,7 +1076,7 @@ create_ToUnicode_cmap (tt_cmap *ttcmap, { pdf_obj *stream = NULL; CMap *cmap; - USHORT i, gid, count = 0; + USHORT count = 0; cff_font *cffont = prepare_CIDFont_from_sfnt(sfont); char is_cidfont = cffont && (cffont->flag & FONTTYPE_CIDFONT); @@ -1088,6 +1088,7 @@ create_ToUnicode_cmap (tt_cmap *ttcmap, CMap_add_codespacerange(cmap, srange_min, srange_max, 2); if (code_to_cid_cmap && cffont && is_cidfont) { + USHORT i; for (i = 0; i < 8192; i++) { int j; -- cgit v1.2.3