summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-10-28 23:03:10 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-10-28 23:03:10 +0000
commitbe588d5973aca8098c685cc59988fe136cb8b162 (patch)
tree626e1f467d794d08910efe6aba9c689ec5e2ae7f /Build
parent675c2b874dcbe2c6cea060f7667f9619ae64ee3b (diff)
texk/dvipdfm-x: Fix a bug in PK font support (S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@35461 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog5
-rw-r--r--Build/source/texk/dvipdfm-x/pkfont.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index dc010c4c547..b9ac1ec2e5e 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-29 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
+
+ * pkfont.c: Cast unsigned integers when they appear in subtractions
+ to obtain results in double.
+
2014-10-05 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* spc_dvips.c: Add " showpage\n" to a temporary file gs_in because
diff --git a/Build/source/texk/dvipdfm-x/pkfont.c b/Build/source/texk/dvipdfm-x/pkfont.c
index 31ce9862860..2650ef438a0 100644
--- a/Build/source/texk/dvipdfm-x/pkfont.c
+++ b/Build/source/texk/dvipdfm-x/pkfont.c
@@ -613,8 +613,8 @@ pdf_font_load_pkfont (pdf_font *font)
/* Update font BBox info */
bbox.llx = MIN(bbox.llx, -pkh.bm_hoff);
- bbox.lly = MIN(bbox.lly, pkh.bm_voff - pkh.bm_ht);
- bbox.urx = MAX(bbox.urx, pkh.bm_wd - pkh.bm_hoff);
+ bbox.lly = MIN(bbox.lly, (double)pkh.bm_voff - (double)pkh.bm_ht);
+ bbox.urx = MAX(bbox.urx, (double)pkh.bm_wd - (double)pkh.bm_hoff);
bbox.ury = MAX(bbox.ury, pkh.bm_voff);
pkt_ptr = NEW(pkh.pkt_len, unsigned char);