mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix wrong return types in towlower(3) and towupper(3) implementations.
This commit is contained in:
parent
926ce2c6c8
commit
fd5b40de26
1 changed files with 2 additions and 2 deletions
|
@ -90,13 +90,13 @@ extern "C" int iswxdigit(wint_t c)
|
|||
return 0;
|
||||
}
|
||||
|
||||
extern "C" int towlower(wint_t c)
|
||||
extern "C" wint_t towlower(wint_t c)
|
||||
{
|
||||
if ( L'A' <= c && c <= L'Z' ) { return L'a' + c - L'A'; }
|
||||
return c;
|
||||
}
|
||||
|
||||
extern "C" int towupper(wint_t c)
|
||||
extern "C" wint_t towupper(wint_t c)
|
||||
{
|
||||
if ( L'a' <= c && c <= L'z' ) { return L'A' + c - L'a'; }
|
||||
return c;
|
||||
|
|
Loading…
Add table
Reference in a new issue