Might be a good idea to add some kind of helpful message here, so that user isn't surprised in the unlikely event that this is actually triggered (e.g. on an infinite range) and doesn't understand why the code asserted.