Don't get stuck in an infinite loop on negative integers!