aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--input.c4
1 files changed, 2 insertions, 2 deletions
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
{