Refs #7732 fix compiler warning

Id cahnged an int to a size_t, and there was a "if negative" check that would always return false with the new type