summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-11-04 08:09:04 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-11-04 08:09:04 +0000
commitc8cfc68dc6c935e993e0f35864a9f8b010cf1650 (patch)
tree772268143a586d7e311a308cb388f5aecfd2dff4
parent07e2cd837938d2e0eb16cbe4aa35fdcd5a797b6a (diff)
texk/dvipdfm-x: Compiler warnings (formatting codes)
git-svn-id: svn://tug.org/texlive/trunk@35506 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog4
-rw-r--r--Build/source/texk/dvipdfm-x/pkfont.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 4e096aaa6b6..3809f8f13b3 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-04 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * pkfont.c: Fix the messed up formatting codes.
+
2014-11-03 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
* pdfdev.c: Do not convert integer part of real numbers to long int
diff --git a/Build/source/texk/dvipdfm-x/pkfont.c b/Build/source/texk/dvipdfm-x/pkfont.c
index 571be6f22c0..b9c4aced32c 100644
--- a/Build/source/texk/dvipdfm-x/pkfont.c
+++ b/Build/source/texk/dvipdfm-x/pkfont.c
@@ -437,7 +437,7 @@ create_pk_CharProc_stream (struct pk_header_ *pkh,
* consistent with write_number() in pdfobj.c.
*/
len = pdf_sprint_number(work_buffer, chrwid);
- len += sprintf (work_buffer + len, " 0 %ld %ld %ld %ld d1\n", llx, lly, urx, ury);
+ len += sprintf (work_buffer + len, " 0 %d %d %d %d d1\n", llx, lly, urx, ury);
pdf_add_stream(stream, work_buffer, len);
/*
* Acrobat dislike transformation [0 0 0 0 dx dy].
@@ -450,9 +450,9 @@ create_pk_CharProc_stream (struct pk_header_ *pkh,
*/
if (pkh->bm_wd != 0 && pkh->bm_ht != 0 && pkt_len > 0) {
/* Scale and translate origin to lower left corner for raster data */
- len = sprintf (work_buffer, "q\n%lu 0 0 %lu %ld %ld cm\n", pkh->bm_wd, pkh->bm_ht, llx, lly);
+ len = sprintf (work_buffer, "q\n%u 0 0 %u %d %d cm\n", pkh->bm_wd, pkh->bm_ht, llx, lly);
pdf_add_stream(stream, work_buffer, len);
- len = sprintf (work_buffer, "BI\n/W %lu\n/H %lu\n/IM true\n/BPC 1\nID ", pkh->bm_wd, pkh->bm_ht);
+ len = sprintf (work_buffer, "BI\n/W %u\n/H %u\n/IM true\n/BPC 1\nID ", pkh->bm_wd, pkh->bm_ht);
pdf_add_stream(stream, work_buffer, len);
/* Add bitmap data */
if (pkh->dyn_f == 14) /* bitmap */