aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emu.c4
-rw-r--r--tui.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/emu.c b/emu.c
index 00012a1..1dcbeb3 100644
--- a/emu.c
+++ b/emu.c
@@ -196,7 +196,7 @@ div(unsigned short *b, unsigned short *a)
reg[EX] = 0;
*b = 0;
} else {
- tmp = (unsigned int)*b << 16 / *a;
+ tmp = ((unsigned int)*b << 16) / *a;
reg[EX] = tmp;
*b = tmp >> 16;
}
@@ -212,7 +212,7 @@ dvi(unsigned short *b, unsigned short *a)
reg[EX] = 0;
*b = 0;
} else {
- tmp = (signed int)*b << 16 / (signed short)*a;
+ tmp = ((signed int)*b << 16) / (signed short)*a;
reg[EX] = tmp;
*b = tmp >> 16;
}
diff --git a/tui.c b/tui.c
index 3185d1b..6e487d7 100644
--- a/tui.c
+++ b/tui.c
@@ -132,7 +132,7 @@ tuiemu(unsigned short *m, unsigned short *r)
initscr();
noecho();
-// nodelay(stdscr, TRUE);
+ nodelay(stdscr, TRUE);
start_color();
init_colors();