diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-10 12:25:25 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-10 12:25:25 +0000 |
commit | d3799c971411d98aa4b10e08e4f670fac4ffbf68 (patch) | |
tree | 1e75418b78102c6a4f9f43af39bf5f9e789affe0 /Build | |
parent | a99c15329e7586e69373bf882c49813298ba1521 (diff) |
dvi2tty: Cast arguments to avoid MSVC compiler warnings (from W32TeX)
git-svn-id: svn://tug.org/texlive/trunk@26989 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
3 files changed, 54 insertions, 7 deletions
diff --git a/Build/source/texk/dvi2tty/dvi2tty-5.3.4-PATCHES/ChangeLog b/Build/source/texk/dvi2tty/dvi2tty-5.3.4-PATCHES/ChangeLog index 562fde34068..2a2d6cd9fb7 100644 --- a/Build/source/texk/dvi2tty/dvi2tty-5.3.4-PATCHES/ChangeLog +++ b/Build/source/texk/dvi2tty/dvi2tty-5.3.4-PATCHES/ChangeLog @@ -1,3 +1,8 @@ +2012-07-10 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-07-win32 (new): Cast arguments to avoid MSVC compiler + warnings (from W32TeX). + 2012-06-22 Peter Breitenlohner <peb@mppmu.mpg.de> * patch-05-win32 (new): WIN32 MSVC lacks <unistd.h> and requires diff --git a/Build/source/texk/dvi2tty/dvi2tty-5.3.4-PATCHES/patch-07-win32 b/Build/source/texk/dvi2tty/dvi2tty-5.3.4-PATCHES/patch-07-win32 new file mode 100644 index 00000000000..d85bf5cdea3 --- /dev/null +++ b/Build/source/texk/dvi2tty/dvi2tty-5.3.4-PATCHES/patch-07-win32 @@ -0,0 +1,42 @@ +diff -ur dvi2tty-5.3.4.orig/dvistuff.c dvi2tty-5.3.4/dvistuff.c +--- dvi2tty-5.3.4.orig/dvistuff.c 2012-04-26 09:20:32.000000000 +0200 ++++ dvi2tty-5.3.4/dvistuff.c 2012-07-10 14:18:30.000000000 +0200 +@@ -970,13 +970,13 @@ + + i = toBUFF(fromDVI(ch)); + kanji1 = 3; +- if (BYTE1(i) != 0) outchar(BYTE1(i)); ++ if (BYTE1(i) != 0) outchar((unsigned char)BYTE1(i)); + kanji1 = 2; +- if (BYTE2(i) != 0) outchar(BYTE2(i)); ++ if (BYTE2(i) != 0) outchar((unsigned char)BYTE2(i)); + kanji1 = 1; +- /* always */ outchar(BYTE3(i)); ++ /* always */ outchar((unsigned char)BYTE3(i)); + kanji1 = 0; +- /* always */ outchar(BYTE4(i)); ++ /* always */ outchar((unsigned char)BYTE4(i)); + + return; + +@@ -1325,7 +1325,7 @@ + void setchar(long charnr) + { + +- outchar(allchar ? (unsigned char) charnr : '#'); ++ outchar((unsigned char)(allchar ? charnr : '#')); + + return; + +@@ -1541,9 +1541,9 @@ + + compute_jis(fnt->fontnum, (unsigned int) ch, &Ku, &Ten); + kanji1 = 1; +- outchar(Ku+128); ++ outchar((unsigned char)(Ku+128)); + kanji1 = 0; +- outchar(Ten+128); ++ outchar((unsigned char)(Ten+128)); + + return; + diff --git a/Build/source/texk/dvi2tty/dvi2tty-5.3.4/dvistuff.c b/Build/source/texk/dvi2tty/dvi2tty-5.3.4/dvistuff.c index 3200fee17ce..91d1f2d4c81 100644 --- a/Build/source/texk/dvi2tty/dvi2tty-5.3.4/dvistuff.c +++ b/Build/source/texk/dvi2tty/dvi2tty-5.3.4/dvistuff.c @@ -970,13 +970,13 @@ void dokanji(long ch) i = toBUFF(fromDVI(ch)); kanji1 = 3; - if (BYTE1(i) != 0) outchar(BYTE1(i)); + if (BYTE1(i) != 0) outchar((unsigned char)BYTE1(i)); kanji1 = 2; - if (BYTE2(i) != 0) outchar(BYTE2(i)); + if (BYTE2(i) != 0) outchar((unsigned char)BYTE2(i)); kanji1 = 1; - /* always */ outchar(BYTE3(i)); + /* always */ outchar((unsigned char)BYTE3(i)); kanji1 = 0; - /* always */ outchar(BYTE4(i)); + /* always */ outchar((unsigned char)BYTE4(i)); return; @@ -1325,7 +1325,7 @@ void putcharacter(long charnr) void setchar(long charnr) { - outchar(allchar ? (unsigned char) charnr : '#'); + outchar((unsigned char)(allchar ? charnr : '#')); return; @@ -1541,9 +1541,9 @@ void jischar(unsigned long ch) compute_jis(fnt->fontnum, (unsigned int) ch, &Ku, &Ten); kanji1 = 1; - outchar(Ku+128); + outchar((unsigned char)(Ku+128)); kanji1 = 0; - outchar(Ten+128); + outchar((unsigned char)(Ten+128)); return; |