x86, ioapic: Fix the types of gsi values