Message ID | 1395934108-1694-12-git-send-email-mjt@msgid.tls.msk.ru |
---|---|
State | Accepted |
Commit | 6d55574a656f3a533a370156aaefedcf7980d4d8 |
Headers | show |
diff --git a/hw/intc/apic.c b/hw/intc/apic.c index 361ae90..b8c061b 100644 --- a/hw/intc/apic.c +++ b/hw/intc/apic.c @@ -201,12 +201,12 @@ static void apic_external_nmi(APICCommonState *s) #define foreach_apic(apic, deliver_bitmask, code) \ {\ - int __i, __j, __mask;\ + int __i, __j;\ for(__i = 0; __i < MAX_APIC_WORDS; __i++) {\ - __mask = deliver_bitmask[__i];\ + uint32_t __mask = deliver_bitmask[__i];\ if (__mask) {\ for(__j = 0; __j < 32; __j++) {\ - if (__mask & (1 << __j)) {\ + if (__mask & (1U << __j)) {\ apic = local_apics[__i * 32 + __j];\ if (apic) {\ code;\