set explicit int cast to shut up compiler warning

maybe we should try to pull request OIIO I donno.