diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2017-02-11 00:50:00 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2017-02-11 00:50:00 +0000 |
commit | b137257aa2e7a24e12be556035f119208cdb723c (patch) | |
tree | a72e7ed9ecf1ed5374160ef3e166f9863d9e7652 /src/GridText.c | |
parent | 882f462b567855898ed2e47023bed2dfb5e018b0 (diff) | |
download | lynx-snapshots-b137257aa2e7a24e12be556035f119208cdb723c.tar.gz |
snapshot of project "lynx", label v2-8-9dev_11l
Diffstat (limited to 'src/GridText.c')
-rw-r--r-- | src/GridText.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GridText.c b/src/GridText.c index 14ddf093..a3abbe79 100644 --- a/src/GridText.c +++ b/src/GridText.c @@ -1,5 +1,5 @@ /* - * $LynxId: GridText.c,v 1.292 2017/02/07 10:10:45 tom Exp $ + * $LynxId: GridText.c,v 1.294 2017/02/11 00:50:00 tom Exp $ * * Character grid hypertext object * =============================== @@ -4449,7 +4449,7 @@ void HText_appendCharacter(HText *text, int ch) case SJIS: if ((text->kcode == EUC) || (text->kcode == JIS)) { if (!conv_jisx0201kana && IS_EUC_X0201KANA(hi, lo)) - line->data[line->size++] = lo; + line->data[line->size++] = (char) lo; else { EUC_TO_SJIS1(hi, lo, tmp); line->data[line->size++] = (char) tmp[0]; @@ -4543,7 +4543,7 @@ void _internal_HTC(HText *text, int style, int dir) if ((int) line->styles[line->numstyles].sc_horizpos >= ctrl_chars_on_this_line) { line->styles[line->numstyles].sc_horizpos -= ctrl_chars_on_this_line; } - line->styles[line->numstyles].sc_style = style; + line->styles[line->numstyles].sc_style = (unsigned short) style; line->styles[line->numstyles].sc_direction = dir; CTRACE_STYLE((tfp, "internal_HTC %d:style[%d] %d (dir=%d)\n", line->size, |