If it took you 4h to find that, programming is not for you. At least you found out in 4h. Ton of people go all the way through Law School and the bar only to find they don't want to practice Law.
Realize it's just a joke, but it would have failed the first attempt compiling. Likely four hours of typing in somebody else's code, and failing the first attempt to build.
😂😂😂
As long as you found the problem, time was not actually wasted. I can bet that, that's the first thing you'll look at the next time your code has a bug.