[hackers] [scc] [libc] Fix toupper() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 23 Feb 2017 13:43:41 +0100 (CET)

commit 7127e4d2d03c76582b8140db3b86169966786adc
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Feb 23 13:43:06 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -7,5 +7,5 @@
 int
 toupper(int c)
 {
- return (islower(c)) ? c & 0x20 : c;
+ return (islower(c)) ? c | 0x20 : c;
 }
Received on Thu Feb 23 2017 - 13:43:41 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 23 2017 - 13:48:18 CET