aboutsummaryrefslogtreecommitdiff
path: root/emu.c
diff options
context:
space:
mode:
Diffstat (limited to 'emu.c')
-rw-r--r--emu.c4
1 files changed, 2 insertions, 2 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;
}