X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=rpikern;a=blobdiff_plain;f=src%2Flibc%2Fctype.c;h=f720566595cd465a02230237adb360795133fe0e;hp=9676441e6d2bcc4771424b114f49268e71594882;hb=32ccc707bc0821d7ff4248fe9f58e92e9c6ebef9;hpb=203b43a75a028e9238307bd6e73768eb8e942071 diff --git a/src/libc/ctype.c b/src/libc/ctype.c index 9676441..f720566 100644 --- a/src/libc/ctype.c +++ b/src/libc/ctype.c @@ -52,5 +52,5 @@ int toupper(int c) int tolower(int c) { - return isupper(c) ? (c + ('A' - 'a')) : c; + return isupper(c) ? (c - ('A' - 'a')) : c; }