From 6e68b35bab557d201b14872ceee444545e2702ea Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Mon, 26 Apr 2010 13:47:46 +0000 Subject: afm2tfm.c: (write16()): cast argument to short to avoid warning. git-svn-id: svn://tug.org/texlive/trunk@18009 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipsk/ChangeLog | 4 ++++ Build/source/texk/dvipsk/afm2tfm.c | 24 ++++++++++++------------ 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 + + * afm2tfm.c: (write16()): cast argument to short to avoid warning. + 2010-04-25 Akira Kakuto * 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); -- cgit v1.2.3