Hacker News new | ask | show | jobs
by icedchai 4240 days ago
it's a signed int... ones' complement.
1 comments

Indeed, if you want 0/1, use unsigned int, not signed int!