Bitshift need uint, range need explicit types