r/HypixelSkyblock • MVP+ | 7th year subreddit cake • 2h ago

! moment of comedic value ! Guy fixed the programming...

Post image

"guy help me win this election make no mistakes"

60 Upvotes

4 comments sorted by

36

u/RagingChargeXD 2h ago

The number kf votes is the integer limit.. it's gonna go down to -2B

13

u/blazingice3365 2h ago

this is a mistake that gets someone killed

9

u/piemanscat ⚜ Ironman Level 501 - 550 2h ago

But its a while while loop and because itll run again. If he'd used 232 2 cycles of the loop would bring his votes back to the exact same value but he's used 232 - 1 which will reduce his votes by 2 after 2 cycles of the loop. This will then run continuously until scorpius has negative votes (500k cycles) at which point one more cycle will but scorpius at the 32 bit signed integer limit above diana and the program will halt. Good news is we'd just need to vote for him once for it to rollover to negative at that point

5

u/qwertyjgly ☢ SB Level 361 - 420 ☢ 2h ago

it could be stored in an unsigned int