summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-22 05:13:22 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-22 05:13:22 +0000
commitb49a22cb4902dae88c286092f1ea650b005f6969 (patch)
treeec06f09e04ed128a83eb32a3022f3076932202f6
parent1dbb4cdc9c33151d9e4748e922ad685af13fd1f3 (diff)
cast arguments to avoid warning.
git-svn-id: svn://tug.org/texlive/trunk@18415 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/devnag/ChangeLog4
-rw-r--r--Build/source/texk/devnag/src/devnag.c18
2 files changed, 13 insertions, 9 deletions
diff --git a/Build/source/texk/devnag/ChangeLog b/Build/source/texk/devnag/ChangeLog
index 369ef93d681..70f3970d36f 100644
--- a/Build/source/texk/devnag/ChangeLog
+++ b/Build/source/texk/devnag/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-22 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * devnag.c: cast arguments in order to avoid compiler warnings.
+
2009-08-21 Peter Breitenlohner <peb@mppmu.mpg.de>
Avoid maximal compiler warnings.
diff --git a/Build/source/texk/devnag/src/devnag.c b/Build/source/texk/devnag/src/devnag.c
index dbc1d14d248..b4de2b2cdfe 100644
--- a/Build/source/texk/devnag/src/devnag.c
+++ b/Build/source/texk/devnag/src/devnag.c
@@ -1644,7 +1644,7 @@ void dnproc(void) {
wrong[2] = '\0';
err_ill(wrong);
}
- else put_ch(i+17);
+ else put_ch((short)(i+17));
break;
case '~':
savchr = inp_ch();
@@ -1658,7 +1658,7 @@ void dnproc(void) {
}
else
if (i == 5) put_ch(47);
- else put_ch(i+20);
+ else put_ch((short)(i+20));
break;
case end_of_line:
put_ch(end_of_line);
@@ -1802,7 +1802,7 @@ void dnproc(void) {
savchr = inp_ch();
if (savchr == 'h') {
if (i == 9) put_ch(20);
- else put_ch(symbol-32);
+ else put_ch((short)(symbol-32));
}
else {
put_ch(symbol);
@@ -2133,7 +2133,7 @@ void put_ch(short code) {
}
}
else {
- if(!cons_seen) sendchar(code);
+ if(!cons_seen) sendchar((char)code);
else {
put_macro(VIRAAM);
put_syll();
@@ -2195,10 +2195,10 @@ void put_ch(short code) {
fputs(outbuf, f_out);
*outbuf = '\0';
}
- else if (code != dummy) sendchar(code);
+ else if (code != dummy) sendchar((char)code);
break;
case cmr:
- if (cmr_mode) sendchar(code);
+ if (cmr_mode) sendchar((char)code);
else {
cmr_mode = TRUE;
if (num_mode) {
@@ -2212,11 +2212,11 @@ void put_ch(short code) {
put_syll();
}
put_sym(RS);
- sendchar(code);
+ sendchar((char)code);
}
break;
case numeral:
- if (num_mode) sendchar(code);
+ if (num_mode) sendchar((char)code);
else {
num_mode = TRUE;
if (cmr_mode) {
@@ -2230,7 +2230,7 @@ void put_ch(short code) {
put_syll();
}
put_sym(RN);
- sendchar(code);
+ sendchar((char)code);
}
}
}