Quantcast
Channel: Latest Questions by Santa
Viewing all articles
Browse latest Browse all 88

Bitwise not gives incorrect result

$
0
0

Hello,

I'm trying to make a mask for layer. And doing this: var mask : int = ~(256);

Result is: -257

That is not at all a "bitwise NOT" for 256.

Why it is so?


Viewing all articles
Browse latest Browse all 88

Trending Articles