diff options
Diffstat (limited to 'emu.c')
-rw-r--r-- | emu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |