Skip to content

Instantly share code, notes, and snippets.

@linknum23
Created November 30, 2016 19:13
Show Gist options
  • Save linknum23/b39c17698bd9a00c88bb9cde8e83054d to your computer and use it in GitHub Desktop.
Save linknum23/b39c17698bd9a00c88bb9cde8e83054d to your computer and use it in GitHub Desktop.
Bugs to Remember
void unsignedReverseIteration(){
unsigned int chan;
// for some odd reason you decide to reverse iterate
for(chan=31; chan >= 0 ; chan--){
// logic, that executes forever in a loop, because chan is never less than 0
}
// code doesn't ever get here!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment