From 38e4c3f09deeb8dd59c2cd09072a4c3cd79d7b5a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 28 Jul 2011 15:34:33 +0000 Subject: Fix for VS2010 build (no whatsnew) --- src/emu/cpu/i86/instr286.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/emu/cpu/i86/instr286.c') diff --git a/src/emu/cpu/i86/instr286.c b/src/emu/cpu/i86/instr286.c index e188cfd8371..ce841a0fa89 100644 --- a/src/emu/cpu/i86/instr286.c +++ b/src/emu/cpu/i86/instr286.c @@ -452,7 +452,7 @@ static void i80286_interrupt_descriptor(i80286_state *cpustate,UINT16 number, in if (!CODE(r) || !SEGDESC(r)) throw TRAP(GENERAL_PROTECTION_FAULT,(IDXTBL(gatesel)+(hwint&&1))); if (DPL(r)>CPL) throw TRAP(GENERAL_PROTECTION_FAULT,(IDXTBL(gatesel)+(hwint&&1))); if (!PRES(r)) throw TRAP(SEG_NOT_PRESENT,(IDXTBL(gatesel)+(hwint&&1))); - if (GATEOFF(desc) > LIMIT(gatedesc)) throw TRAP(GENERAL_PROTECTION_FAULT,(hwint&&1)); + if (GATEOFF(desc) > LIMIT(gatedesc)) throw TRAP(GENERAL_PROTECTION_FAULT,(int)(hwint&&1)); if (!CONF(r)&&(DPL(r)