Fix wrong return types in towlower(3) and towupper(3) implementations.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-02-13 15:41:00 +01:00
parent 926ce2c6c8
commit fd5b40de26
1 changed files with 2 additions and 2 deletions

View File

@ -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;