Comment on I am just silly
hypertown@ani.social 2 months ago
Programmer’s humor classic
Your typical weirdos would bring home six milks, but programmers would come home with seven.
I don’t know what you did wrong because I got -2147483642 milks.
Sounds like a stray photon flipper your sign bit on. You can flip it back with this:
num_milks ^= 1 << (sizeof(num_milks) * 8 - 1);
Unless the variable is named “countMinusOne” then I’m bringing back 6
0x0@lemmy.dbzer0.com 2 months ago
Your typical weirdos would bring home six milks, but programmers would come home with seven.
Sabata11792@ani.social 2 months ago
I don’t know what you did wrong because I got -2147483642 milks.
0x0@lemmy.dbzer0.com 2 months ago
Sounds like a stray photon flipper your sign bit on. You can flip it back with this:
JPAKx4@lemmy.blahaj.zone 2 months ago
Unless the variable is named “countMinusOne” then I’m bringing back 6