Skip to content

Commit

Permalink
Fix type mismatch warning with clang compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Dec 30, 2022
1 parent c64e51b commit 947f947
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lesskey_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@ static char * clean_line(char *s)
/*
* Add a byte to the output command table.
*/
static void add_cmd_char(char c, struct lesskey_tables *tables)
static void add_cmd_char(unsigned char c, struct lesskey_tables *tables)
{
xbuf_add_byte(&tables->currtable->buf, (unsigned char) c);
xbuf_add_byte(&tables->currtable->buf, c);
}

static void erase_cmd_char(struct lesskey_tables *tables)
Expand Down Expand Up @@ -518,14 +518,14 @@ static void parse_cmdline(char *p, struct lesskey_tables *tables)
p = skipsp(p);
if (*p == '\0')
{
add_cmd_char((char) action, tables);
add_cmd_char((unsigned char) action, tables);
} else
{
/*
* OR the special value A_EXTRA into the action byte.
* Put the extra string after the action byte.
*/
add_cmd_char((char) (action | A_EXTRA), tables);
add_cmd_char((unsigned char) (action | A_EXTRA), tables);
while (*p != '\0')
add_cmd_str(tstr(&p, 0), tables);
add_cmd_char('\0', tables);
Expand Down

0 comments on commit 947f947

Please sign in to comment.