1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-04-24 19:50:25 +00:00

Replace -1 initializers in unsigned char keyboard map with 255 and correct code that checks > -1 (Ref issue #27)

modified:   src/initkbd.c
	modified:   src/keyevent.c
This commit is contained in:
Nick Briggs
2020-09-04 23:33:41 -07:00
parent 0ad69fc6fe
commit 966adb6004
2 changed files with 120 additions and 157 deletions

View File

@@ -465,7 +465,7 @@ int kb_event(struct inputevent *event);
break;
default: /* keystroke */
if ((kn = SUNLispKeyMap[((unsigned short)event->ie_code)]) > -1)
if ((kn = SUNLispKeyMap[((unsigned short)event->ie_code)]) < 255)
kb_trans(kn, upflg);
else
printf("kb_event: unknown key number=%d\n", event->ie_code);