Fix narrowing conversion from -1 to size_t Checked in r1010
We have another file reported with these conversions.
LGTM