hi,
I am doing code conversion from JavaScript to vb.net. I am stuck with the >>> operation. see the sample code and my attempt below:
JavaScript:
function test(a, b){
return (a << b) | (a >>> (32 - b))
}
my attempt in vb.net:
Private Function test(ByVal a As Integer, ByVal b As Integer) As Integer
Return ((a << b) Or (CUShort(a) >> (32 - b)))
End Function
Please what am i doing wrong?
Thanks.