mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 07:29:09 +00:00
Fixed Visual Studio warning 4245
This commit is contained in:
parent
f341c06552
commit
85ee1498a5
6 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue