They’re all stupid bugs

Short post, I just need to explain a pretty irritating bug that frankly should have been caught by the compiler.

I had a bunch of nested loops where I was calling a bunch of boolean functions that, if true, allowed me to proceed to the next part of the program. One of those was LoadMedia(). I accidentally forgot the (), which means that I never actually loaded the data.
I’m left wondering how it always returned a true value. What could that true value even possibly represent? If this is the stuff that static analysis catches, then I can’t implement that stuff soon enough.

For those curious:

printf(“Failed to load media\n”);


should have been:

printf(“Failed to load media\n”);


This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s