News for hackers. Stuff that matters.
Re:Dang is going to have 65,535 karma points soon by EGreg on Wednesday April 05, 2023 @07:01PM (#35461656)
Will he be the first person to have negative karma otherwise? And the most tremendous one at that! Believe me, no one will have smaller karma than him, nobody.

What happens if he gets downvoted then? Will it wrap around to the HIGHEST KARMA? :)

Re:Dang is going to have 65,535 karma points soon by dheera on Wednesday April 05, 2023 @07:22PM (#35461879)
No, if an overflow at 65535 occurs it would be to 0, not negative.

signed 16-bit ints are -32768 to 32767, unsigned 16-bit ints are 0 to 65535

Re:Dang is going to have 65,535 karma points soon by maximilianroos on Wednesday April 05, 2023 @07:30PM (#35461962)
<a rare sighting of an int17>
Re:Dang is going to have 65,535 karma points soon by muzani on Wednesday April 05, 2023 @08:18PM (#35462404)
Why allocate more bits than you ever need?
Re:Dang is going to have 65,535 karma points soon by rurban on Thursday April 06, 2023 @07:33AM (#35466978)
arc is written in scheme, it never overflows. both mzscheme and racket have proper integers, it is not C.