Fix wrong return types in towlower(3) and towupper(3) implementations.
This commit is contained in:
parent
926ce2c6c8
commit
fd5b40de26
|
@ -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…
Reference in New Issue