fix a type warning on win32