commit 7127e4d2d03c76582b8140db3b86169966786adc
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Thu Feb 23 13:43:06 2017 +0100
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Thu Feb 23 13:43:06 2017 +0100

    [libc] Fix toupper()

diff --git a/libc/src/toupper.c b/libc/src/toupper.c
index 27a0be6..7f47242 100644
--- a/libc/src/toupper.c
+++ b/libc/src/toupper.c
@@ -7,5 +7,5 @@
 int
 toupper(int c)
 {
-       return (islower(c)) ? c & 0x20 : c;
+       return (islower(c)) ? c | 0x20 : c;
 }

Reply via email to