mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-27 21:48:29 +00:00
Fixed Visual Studio warning 4245
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user