summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-04-26 13:47:46 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-04-26 13:47:46 +0000
commit6e68b35bab557d201b14872ceee444545e2702ea (patch)
tree77b9e1e8bce6785ef2fa19a411c98f0ccb95d997
parent26ba2c24f5c830c1ec1bfc2c7c5cddeffcf517bd (diff)
afm2tfm.c: (write16()): cast argument to short to avoid warning.
git-svn-id: svn://tug.org/texlive/trunk@18009 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/dvipsk/ChangeLog4
-rw-r--r--Build/source/texk/dvipsk/afm2tfm.c24
2 files changed, 16 insertions, 12 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog
index 8adec24d858..9b2c5bc9177 100644
--- a/Build/source/texk/dvipsk/ChangeLog
+++ b/Build/source/texk/dvipsk/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-26 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * afm2tfm.c: (write16()): cast argument to short to avoid warning.
+
2010-04-25 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* writet1.c (edecrypt()): cast argument to byte to avoid warning.
diff --git a/Build/source/texk/dvipsk/afm2tfm.c b/Build/source/texk/dvipsk/afm2tfm.c
index e0d79f05bb8..0d6da9bb746 100644
--- a/Build/source/texk/dvipsk/afm2tfm.c
+++ b/Build/source/texk/dvipsk/afm2tfm.c
@@ -1162,18 +1162,18 @@ writesarr(long *what, int len)
static void
writetfm(void) {
lf = 6 + lh + (ec - bc + 1) + nw + nh + nd + ni + nl + nk + ne + np;
- write16(lf);
- write16(lh);
- write16(bc);
- write16(ec);
- write16(nw);
- write16(nh);
- write16(nd);
- write16(ni);
- write16(nl);
- write16(nk);
- write16(ne);
- write16(np);
+ write16((short)lf);
+ write16((short)lh);
+ write16((short)bc);
+ write16((short)ec);
+ write16((short)nw);
+ write16((short)nh);
+ write16((short)nd);
+ write16((short)ni);
+ write16((short)nl);
+ write16((short)nk);
+ write16((short)ne);
+ write16((short)np);
writearr(header, lh);
writearr(charinfo, ec-bc+1);
writesarr(width, nw);