fix genSwitch when word size is 64 bit