Make the type of shift amount i32 in order to reduce the number of shift