summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/dvipdfm-x/tt_cmap.c5
1 files changed, 3 insertions, 2 deletions
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;