Skip to content

Commit

Permalink
Types.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Nov 14, 2023
1 parent 5907455 commit b2e140b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charset.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ public lbool is_utf8_well_formed(constant char *ss, int slen)
return (FALSE);
} else
{
unsigned char mask = (~((((unsigned char)1) << (8-len)) - 1)) & 0xFF;
unsigned char mask = (~((1 << (8-len)) - 1)) & 0xFF;
if (s[0] == mask && (s[1] & mask) == 0x80)
return (FALSE);
}
Expand Down
2 changes: 1 addition & 1 deletion cmdbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ public int cmd_char(char c)
goto retry;
}

len = cmd_mbc_buf_len;
len = (size_t) cmd_mbc_buf_len; /*{{type-issue}}*/
cmd_mbc_buf_len = 0;
}

Expand Down
2 changes: 1 addition & 1 deletion command.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ static char getccu(void)
c = getcc_end_command();
}
}
return (c);
return ((char) c);
}

/*
Expand Down
6 changes: 3 additions & 3 deletions decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,13 +516,13 @@ static int mouse_button_right(int x, int y)
/*
* Read a decimal integer. Return the integer and set *pterm to the terminating char.
*/
static int getcc_int(LWCHAR *pterm)
static int getcc_int(char *pterm)
{
int num = 0;
int digits = 0;
for (;;)
{
LWCHAR ch = getcc();
char ch = getcc();
if (ch < '0' || ch > '9')
{
if (pterm != NULL) *pterm = ch;
Expand Down Expand Up @@ -576,7 +576,7 @@ static int x11mouse_action(int skip)
*/
static int x116mouse_action(int skip)
{
LWCHAR ch;
char ch;
int x, y;
int b = getcc_int(&ch);
if (b < 0 || ch != ';') return (A_NOACTION);
Expand Down

0 comments on commit b2e140b

Please sign in to comment.