Oh! That's the problem, all right. My i was a word. So it was probably evaluating -1 as MAXINT16 -1, (or whatever it's called,) which is a big positive number.

Thanks!

Mason