1
0
mirror of https://github.com/prirun/p50em.git synced 2026-01-13 15:17:32 +00:00

em.c: fix precendence bug caught by compiler

Only affects the display of keys (float exception enabled) on a fatal error.
This commit is contained in:
Jim Wilcoxson 2020-04-26 12:27:48 -04:00
parent 33f748f778
commit 280634b67e

2
em.c
View File

@ -1763,7 +1763,7 @@ char *keystring(unsigned short keys) {
*sp++ = 'L';
memcpy(sp, modes[(keys>>10) & 7], 3);
sp += 3;
if (keys & 01000 == 0) /* float exception enabled */
if (!(keys & 01000)) /* float exception enabled */
*sp++ = 'F';
if (keys & 0400) /* int exception enabled */
*sp++ = 'I';