mirror of
https://github.com/holub/mame
synced 2025-06-02 19:06:43 +03:00
fix a warning
This commit is contained in:
parent
e5bdb0986a
commit
68ce2d11b4
@ -2245,7 +2245,7 @@ void tms3203x_device::mpyf_imm(UINT32 op)
|
||||
#define MPYI(dreg, src1, src2) \
|
||||
{ \
|
||||
INT64 _res = (INT64)((INT32)(src1 << 8) >> 8) * (INT64)((INT32)(src2 << 8) >> 8);\
|
||||
if (!OVM() || (_res >= -0x80000000 && _res <= 0x7fffffff)) \
|
||||
if (!OVM() || (_res >= -(INT64)0x80000000 && _res <= (INT64)0x7fffffff)) \
|
||||
IREG(dreg) = _res; \
|
||||
else \
|
||||
IREG(dreg) = (_res < 0) ? 0x80000000 : 0x7fffffff; \
|
||||
|
Loading…
Reference in New Issue
Block a user