Clean up safe size_t->int cast warnings.