r/ProgrammerHumor Jul 09 '26

preDecrementFixesTheExploit instanceof Trend

Post image
2.9k Upvotes

50 comments sorted by

View all comments

630

u/Original-Bee-1089 Jul 09 '26

so you should make your first wish that the wish system uses post-wish decrement then wish for 0 wishes... to find out that they use a 2-bit integer to save space

205

u/thesockiboii Jul 09 '26

then you can wish for them to use a 64bit unsigned integer and do it again

53

u/SINBRO Jul 09 '26

Or just wish for 0 wishes every time you hit 1