Hacker News new | ask | show | jobs
by goalieca 71 days ago
You should be using &0xFFFF for masking. Your mod is off by 1 too.
1 comments

You're right, the code was correct but my comment above is wrong.