summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2015-10-02 20:29:19 +0200
committerAlexander Færøy <ahf@0x90.dk>2015-10-03 19:01:16 +0200
commit5f35fbc57a18eabc68723f1b82aacbfd84f637d1 (patch)
tree25bd0f625c5a822fd17aede9a618c8c121ba9394
parent685d8fe5b033ffce40b02aaf4ec3341f5cf3350c (diff)
downloadirssi-5f35fbc57a18eabc68723f1b82aacbfd84f637d1.zip
Remove check for >= 0 for unsigned unichar.
-rw-r--r--src/fe-text/gui-entry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c
index 17a7c507..c7d06404 100644
--- a/src/fe-text/gui-entry.c
+++ b/src/fe-text/gui-entry.c
@@ -35,21 +35,21 @@ static unichar i_toupper(unichar c)
{
if (term_type == TERM_TYPE_UTF8)
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)
{
if (term_type == TERM_TYPE_UTF8)
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)
{
if (term_type == TERM_TYPE_UTF8)
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;