While we're at it, amend the loop variable type to be the same width as that returned by the .size() call.