From b7c8d77734be2d0fd0da31f5a1645bf2eabd4583 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 4 Jan 2024 16:57:26 -0500 Subject: Revert aafee27 and fix it correctly. --- input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 82c1cd1..575750b 100644 --- a/input.c +++ b/input.c @@ -265,7 +265,7 @@ key(char c) case 'd': case 'e': case 'f': - v = c - 38; + v = c - 39; case '0': case '1': case '2': @@ -277,7 +277,7 @@ key(char c) case '8': case '9': v -= '0'; - if (v > base || iptr == MAXIN-1) + if (v >= base || iptr == MAXIN-1) bell(); else { -- cgit v1.2.3