Fixed Visual Studio warning 4245

This commit is contained in:
Sam Lantinga 2023-03-30 14:02:06 -07:00
parent f341c06552
commit 85ee1498a5
6 changed files with 7 additions and 7 deletions

View file

@ -396,7 +396,7 @@ static SDL_JoystickID VIRTUAL_JoystickGetDeviceInstanceID(int device_index)
{
joystick_hwdata *hwdata = VIRTUAL_HWDataForIndex(device_index);
if (hwdata == NULL) {
return -1;
return 0;
}
return hwdata->instance_id;
}