In C++ I have code like this.
static UInt32 rol(UInt32 value, UInt32 bits) { bits &= 31; return ((value << bits) | (value >&
The right operand must be always type int.
int x << int bits uint x << int bits long x << int bits ulong x << int bits