Resolve int vs size_t conversion