This is probably related to your bad indentation, but this code seem wrong. If `n >= 0`, this will trivially never break.