summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/pdfdoc.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-08-24 08:49:38 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-08-24 08:49:38 +0000
commit186bbd00ffa404c29caaeeeee89437c127e95df7 (patch)
tree1adffc6952f6d43b9ecd8002064da7189fbeae5d /Build/source/texk/dvipdfm-x/pdfdoc.c
parent90e1eb12c7fa4c597d0b72e1a8af3186110e2bb2 (diff)
texk/dvipdfm-x: No reason to use 'long' for 32-bit integers
git-svn-id: svn://tug.org/texlive/trunk@38194 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfdoc.c')
-rw-r--r--Build/source/texk/dvipdfm-x/pdfdoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfdoc.c b/Build/source/texk/dvipdfm-x/pdfdoc.c
index b7852f02dba..d0c8479762c 100644
--- a/Build/source/texk/dvipdfm-x/pdfdoc.c
+++ b/Build/source/texk/dvipdfm-x/pdfdoc.c
@@ -1628,7 +1628,7 @@ pdf_doc_add_goto (pdf_obj *annot_dict)
/* We use hexadecimal notation for our numeric destinations.
* Other bases (e.g., 10+26 or 10+2*26) would be more efficient.
*/
- sprintf(buf, "%lx", ht_table_size(&pdoc.gotos));
+ sprintf(buf, "%x", ht_table_size(&pdoc.gotos));
D_new = pdf_new_string(buf, strlen(buf));
ht_append_table(&pdoc.gotos, dest, strlen(dest), D_new);
}
@@ -1694,7 +1694,7 @@ pdf_doc_close_names (pdf_doc *p)
if (p->names[i].data) {
struct ht_table *data = p->names[i].data;
pdf_obj *name_tree;
- long count;
+ int count;
if (!pdoc.check_gotos || strcmp(p->names[i].category, "Dests"))
name_tree = pdf_names_create_tree(data, &count, NULL);