1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

[hr] char -> unsigned char to avoid warning

This commit is contained in:
Witold Filipczyk 2023-11-17 16:04:05 +01:00
parent aa7edfc16d
commit 58b0b39200

View File

@ -670,7 +670,7 @@ html_hr(struct html_context *html_context, char *a,
char *html, char *eof, char **end)
{
int i/* = par_elformat.width - 10*/;
char r = BORDER_DHLINE;
unsigned char r = BORDER_DHLINE;
int q = get_num(a, "size", html_context->doc_cp);
if (q >= 0 && q < 2) r = BORDER_SHLINE;
@ -687,7 +687,7 @@ html_hr(struct html_context *html_context, char *a,
elformat.style.attr = AT_GRAPHICS;
html_context->special_f(html_context, SP_NOWRAP, 1);
while (i-- > 0) {
put_chrs(html_context, &r, 1);
put_chrs(html_context, (const char *)&r, 1);
}
html_context->special_f(html_context, SP_NOWRAP, 0);
ln_break(html_context, 2);