summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-entry.c
diff options
context:
space:
mode:
authordx <dx@dxzone.com.ar>2015-11-01 13:40:54 -0300
committerdx <dx@dxzone.com.ar>2015-11-01 13:40:54 -0300
commit8d1f667100fdd5ff331f4f9e4b922c4a9db7c53d (patch)
tree56565b597306522970264c7401afc54d5f36f9ab /src/fe-text/gui-entry.c
parent897ceedc16fd2a24e75529480a7b7bc6ca769073 (diff)
parent2127fd362e240a9fed09dff9044fe5c477fc2bf8 (diff)
downloadirssi-8d1f667100fdd5ff331f4f9e4b922c4a9db7c53d.zip
Merge pull request #320 from irssi/ahf/add-setting-type-any
Fix warnings
Diffstat (limited to 'src/fe-text/gui-entry.c')
-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;