diff options
-rw-r--r-- | input.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |