From fe0c631d42aed6f8eb97351f0efcb24b4aa8678b Mon Sep 17 00:00:00 2001 From: emma Date: Sun, 14 Jul 2024 02:41:59 -0600 Subject: [PATCH] dj.1: reverts change to hex literals --- src/dj.c | 2 +- src/npc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dj.c b/src/dj.c index b847b38..53adb61 100644 --- a/src/dj.c +++ b/src/dj.c @@ -219,7 +219,7 @@ int main(int argc, char *argv[]) { if (c == 'c' && (count = parse(optarg)) >= 0) { break; } i = (c >= 'A' && c <= 'Z'); - c |= 0b00100000; /* (ASCII) make lowercase */ + c |= 0x20 /* ASCII make lowercase 0b 0010 0000 */ if ( (c == 'b' && (io[i].bs = parse(optarg)) > 0) diff --git a/src/npc.c b/src/npc.c index 0892a72..d160523 100644 --- a/src/npc.c +++ b/src/npc.c @@ -51,7 +51,7 @@ int main(int argc, char *argv[]) { while ((c = getc(stdin)) != EOF) { if ((c & 0x80) != 0) { fputs("M-", stdout); } - switch (c ^ 0b10000000) { + switch (c ^ 0x80) { /* 0b 1000 0000 */ case 0x7f: fputs("^?", stdout); break; case '\n': if (showend) { putc('$', stdout); } default: