Remove a branch that could never trigger (unsigned < 0) and some other logic errors...