X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Flibc%2Fctype.c;fp=src%2Flibc%2Fctype.c;h=89e7b93aca192fbf3766b468bff6205eeaec9708;hp=76746dd982338fa680b33fcb99a001cd967cc686;hb=81c11bdd80190ec319a82b0402173cfb65fcbf72;hpb=7dcd5071e600f8cf48174d1fddb3dba57ec9476d diff --git a/src/libc/ctype.c b/src/libc/ctype.c index 76746dd..89e7b93 100644 --- a/src/libc/ctype.c +++ b/src/libc/ctype.c @@ -69,5 +69,5 @@ int toupper(int c) int tolower(int c) { - return isupper(c) ? (c + ('A' - 'a')) : c; + return isupper(c) ? (c - ('A' - 'a')) : c; }