According to your logic you must use &= int this and all next cases