summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/cmap_write.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-08-25 08:27:18 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-08-25 08:27:18 +0000
commit9e79a59a9cd97513d54c3e6190d2391947daa14b (patch)
treed301db97dfeb963bb8bdb0e02139d332057d07e7 /Build/source/texk/dvipdfm-x/cmap_write.c
parent4dc44f751f9c40c83f347420624e498aa936d0ab (diff)
texk/dvipdfm-x: Replace '(unsigned) long' by '(unsigned) int' or
'(u)int32_t' except when needed with for ftell() and fseek() git-svn-id: svn://tug.org/texlive/trunk@38200 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/cmap_write.c')
-rw-r--r--Build/source/texk/dvipdfm-x/cmap_write.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Build/source/texk/dvipdfm-x/cmap_write.c b/Build/source/texk/dvipdfm-x/cmap_write.c
index c56b95fa1a1..a1addc071ae 100644
--- a/Build/source/texk/dvipdfm-x/cmap_write.c
+++ b/Build/source/texk/dvipdfm-x/cmap_write.c
@@ -1,6 +1,6 @@
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
- Copyright (C) 2002-2014 by Jin-Hwan Cho and Shunsaku Hirata,
+ Copyright (C) 2002-2015 by Jin-Hwan Cho and Shunsaku Hirata,
the dvipdfmx project team.
This program is free software; you can redistribute it and/or modify
@@ -183,7 +183,7 @@ write_map (mapDef *mtab, int count,
sprintf(fmt_buf, "%d beginbfchar\n", count);
pdf_add_stream(stream, fmt_buf, strlen(fmt_buf));
pdf_add_stream(stream,
- wbuf->buf, (long) (wbuf->curptr - wbuf->buf));
+ wbuf->buf, (int) (wbuf->curptr - wbuf->buf));
wbuf->curptr = wbuf->buf;
pdf_add_stream(stream,
"endbfchar\n", strlen("endbfchar\n"));
@@ -198,7 +198,7 @@ write_map (mapDef *mtab, int count,
sprintf(fmt_buf, "%d beginbfchar\n", count);
pdf_add_stream(stream, fmt_buf, strlen(fmt_buf));
pdf_add_stream(stream,
- wbuf->buf, (long) (wbuf->curptr - wbuf->buf));
+ wbuf->buf, (int) (wbuf->curptr - wbuf->buf));
wbuf->curptr = wbuf->buf;
pdf_add_stream(stream,
"endbfchar\n", strlen("endbfchar\n"));
@@ -229,7 +229,7 @@ write_map (mapDef *mtab, int count,
*(wbuf->curptr)++ = '\n';
}
pdf_add_stream(stream,
- wbuf->buf, (long) (wbuf->curptr - wbuf->buf));
+ wbuf->buf, (int) (wbuf->curptr - wbuf->buf));
wbuf->curptr = wbuf->buf;
pdf_add_stream(stream,
"endbfrange\n", strlen("endbfrange\n"));
@@ -323,7 +323,7 @@ CMap_create_stream (CMap *cmap)
pdf_new_name("Identity-H"));
}
} else {
- long res_id;
+ int res_id;
pdf_obj *ucmap_ref;
res_id = pdf_findresource("CMap", CMap_get_name(cmap->useCMap));
@@ -371,7 +371,7 @@ CMap_create_stream (CMap *cmap)
>> def\n"
wbuf.curptr += sprintf(wbuf.curptr, CMAP_CSI_FMT,
csi->registry, csi->ordering, csi->supplement);
- pdf_add_stream(stream, wbuf.buf, (long)(wbuf.curptr - wbuf.buf));
+ pdf_add_stream(stream, wbuf.buf, (int)(wbuf.curptr - wbuf.buf));
wbuf.curptr = wbuf.buf;
/* codespacerange */
@@ -392,7 +392,7 @@ CMap_create_stream (CMap *cmap)
*(wbuf.curptr)++ = '>';
*(wbuf.curptr)++ = '\n';
}
- pdf_add_stream(stream, wbuf.buf, (long)(wbuf.curptr - wbuf.buf));
+ pdf_add_stream(stream, wbuf.buf, (int)(wbuf.curptr - wbuf.buf));
wbuf.curptr = wbuf.buf;
pdf_add_stream(stream,
"endcodespacerange\n", strlen("endcodespacerange\n"));
@@ -408,7 +408,7 @@ CMap_create_stream (CMap *cmap)
sprintf(fmt_buf, "%d beginbfchar\n", count);
pdf_add_stream(stream, fmt_buf, strlen(fmt_buf));
pdf_add_stream(stream,
- wbuf.buf, (long) (wbuf.curptr - wbuf.buf));
+ wbuf.buf, (int) (wbuf.curptr - wbuf.buf));
pdf_add_stream(stream,
"endbfchar\n", strlen("endbfchar\n"));
count = 0;