Go: bitwise complement operator is ^, not ~
dolmen opened this issue · comments
Olivier Mengué commented
The following code:
var x = 3;
x = ~x;
must be translated to Go as:
x := 3;
x = ^x; // Not ~x
dolmen opened this issue · comments
The following code:
var x = 3;
x = ~x;
must be translated to Go as:
x := 3;
x = ^x; // Not ~x