I found it.
Defined int i in one place and size_t i in the same function.
int i
size_t i
Would have thought that this would not have been a problem given my understanding of variable scope, but I guess I’ve run into this before.