mirror of
https://github.com/irssi/irssi.git
synced 2025-04-26 04:51:11 -05:00
Remove check for >= 0 for unsigned unichar.
This commit is contained in:
parent
685d8fe5b0
commit
5f35fbc57a
@ -35,21 +35,21 @@ static unichar i_toupper(unichar c)
|
|||||||
{
|
{
|
||||||
if (term_type == TERM_TYPE_UTF8)
|
if (term_type == TERM_TYPE_UTF8)
|
||||||
return g_unichar_toupper(c);
|
return g_unichar_toupper(c);
|
||||||
return (c >= 0 && c <= 255) ? toupper(c) : c;
|
return c <= 255 ? toupper(c) : c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unichar i_tolower(unichar c)
|
static unichar i_tolower(unichar c)
|
||||||
{
|
{
|
||||||
if (term_type == TERM_TYPE_UTF8)
|
if (term_type == TERM_TYPE_UTF8)
|
||||||
return g_unichar_tolower(c);
|
return g_unichar_tolower(c);
|
||||||
return (c >= 0 && c <= 255) ? tolower(c) : c;
|
return c <= 255 ? tolower(c) : c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int i_isalnum(unichar c)
|
static int i_isalnum(unichar c)
|
||||||
{
|
{
|
||||||
if (term_type == TERM_TYPE_UTF8)
|
if (term_type == TERM_TYPE_UTF8)
|
||||||
return (g_unichar_isalnum(c) || mk_wcwidth(c) == 0);
|
return (g_unichar_isalnum(c) || mk_wcwidth(c) == 0);
|
||||||
return (c >= 0 && c <= 255) ? isalnum(c) : 0;
|
return c <= 255 ? isalnum(c) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
GUI_ENTRY_REC *active_entry;
|
GUI_ENTRY_REC *active_entry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user