Fix a type warning in VC