mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 23:18:29 +00:00
Fixed Visual Studio warning 4244
This commit is contained in:
@@ -134,7 +134,7 @@ SDL_HapticOpen(int device_index)
|
||||
/* Initialize the haptic device */
|
||||
SDL_memset(haptic, 0, sizeof(*haptic));
|
||||
haptic->rumble_id = -1;
|
||||
haptic->index = device_index;
|
||||
haptic->index = (Uint8)device_index;
|
||||
if (SDL_SYS_HapticOpen(haptic) < 0) {
|
||||
SDL_free(haptic);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user