Fix broken toupper_ascii()
Update copyright years.
This commit is contained in:
parent
e25a880883
commit
9866675bb7
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2014 - 2016, Přemysl Janouch <p.janouch@gmail.com>
|
Copyright (c) 2014 - 2017, Přemysl Janouch <p.janouch@gmail.com>
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
@ -2639,7 +2639,7 @@ tolower_ascii (int c)
|
|||||||
static int
|
static int
|
||||||
toupper_ascii (int c)
|
toupper_ascii (int c)
|
||||||
{
|
{
|
||||||
return c >= 'A' && c <= 'Z' ? c : c - ('a' - 'A');
|
return c >= 'a' && c <= 'z' ? c - ('a' - 'A') : c;
|
||||||
}
|
}
|
||||||
|
|
||||||
TRIVIAL_STRXFRM (tolower_ascii_strxfrm, tolower_ascii)
|
TRIVIAL_STRXFRM (tolower_ascii_strxfrm, tolower_ascii)
|
||||||
|
Loading…
Reference in New Issue
Block a user