Genie grants the wish, and then deducts one from the pool of remaining wishes.
Edit 1: And it is implied that the Genie stored the number of remaining wishes as an eight bit unsigned integer, where subtracting one from zero gives 255.
It is worth noting that unsigned integer subtract-from-zero exploits were common in video games from around the time that Disney’s Aladdin was released.
Edit 2: No discussion of amusing subtract-from-zero bugs is complete without a link to Nuclear Gandhi. (Even though it is now believed not to have been a subtract-from-zero bug.)
Genie grants the wish, and then deducts one from the pool of remaining wishes.
Edit 1: And it is implied that the Genie stored the number of remaining wishes as an eight bit unsigned integer, where subtracting one from zero gives 255.
It is worth noting that unsigned integer subtract-from-zero exploits were common in video games from around the time that Disney’s Aladdin was released.
Edit 2: No discussion of amusing subtract-from-zero bugs is complete without a link to Nuclear Gandhi. (Even though it is now believed not to have been a subtract-from-zero bug.)
He is saying factorial of zero, so more a math nerd than a computer nerd.
This is why math nerds prefer to talk in a dull tone. The least bit of excitement, and your equation is suddenly wrong.
Yes. I caught the factorial reference, but wanted to address the question, in case it was also in earnest.