This is a java function, i converted to golang code, but appear error.
How can I solve this problem? please teach.
int p = -1; int x = 0; x |= 0x1 << p; p++;
var p int = -1 var x int = 0 x |= 0x1 << p p++
shift code type int, must be unsigned integer