Y
Hacker News
new
|
ask
|
show
|
jobs
One-bit signed integers
(
gist.github.com
)
2 points
by
jeamland
4240 days ago
3 comments
informatimago
4240 days ago
So? What's your problem?
link
mcdevhammer
4239 days ago
I don't understand.
link
svisser
4239 days ago
Why does this happen?
link
icedchai
4239 days ago
it's a signed int... ones' complement.
link
informatimago
4239 days ago
Indeed, if you want 0/1, use unsigned int, not signed int!
link