Guh…

Well, so.. I’m on speed. Unintentionally. The good side effect is that I’m coding the hell out of my project.

The bad news… I’m being sloppy. My complex algorithm that I spent weeks on was crashing. Really badly.

So after about 45 minutes of debugging I found the little bastard. I’m going to post it here. If people want an explanation… I can give it. Those of you who actually know code… see if you can see the stupidity I did.

if (currDepth != newDepth) {
NSUInteger popCount = currDepth - newDepth;
NSUInteger popCounter;
for (popCounter = 1; popCounter < = popCount; popCount++) {
[[self parserStack] pop];
}				
}

Oh, I feel like such a moron.

We now return you to your previously scheduled morning.

« »