logoalt Hacker News

goaliecatoday at 11:04 AM1 replyview on HN

You should be using &0xFFFF for masking. Your mod is off by 1 too.


Replies

jstanleytoday at 11:48 AM

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