Fixed Visual Studio warning 4244
This commit is contained in:
parent
85ee1498a5
commit
308bcbbe76
29 changed files with 160 additions and 155 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue