summarylogtreecommitdiffstats
path: root/rot13.c
diff options
context:
space:
mode:
authorMichael Düll2016-02-28 18:24:15 +0100
committerMichael Düll2016-02-28 18:24:15 +0100
commitb0f5df5204349933721aae54739270a194141d6b (patch)
treed4721f5535690494390af9f81fce0836079faf4f /rot13.c
parent873523813ad1416c3ddb06b9f6e6cd8d33a15440 (diff)
downloadaur-b0f5df5204349933721aae54739270a194141d6b.tar.gz
Forgot to update the SHA384 checksum.
Signed-off-by: Michael Düll <michael.duell@rub.de>
Diffstat (limited to 'rot13.c')
-rw-r--r--rot13.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rot13.c b/rot13.c
index 9dac68a2dbf6..791b0c4a6773 100644
--- a/rot13.c
+++ b/rot13.c
@@ -25,6 +25,7 @@ int islower_ascii(unsigned cnum) {
char transpose(char c){
unsigned cnum = (unsigned)c;
unsigned offset = (unsigned)OFFSET;
+
if ((cnum | LOWER_CASE_BIT) - OFFSET < ALPHABET_SIZE) {
if (!islower_ascii(cnum)) {
offset -= LOWER_CASE_BIT;