mirror of https://github.com/encounter/SDL.git
Fixed compile warnings with Visual Studio
This commit is contained in:
parent
adb75d642c
commit
384d86b584
|
@ -649,7 +649,7 @@ HIDAPI_DriverPS4_SendJoystickEffect(SDL_HIDAPI_Device *device, SDL_Joystick *joy
|
||||||
offset = 4;
|
offset = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_memcpy(&data[offset], effect, SDL_min((sizeof(data) - offset), size));
|
SDL_memcpy(&data[offset], effect, SDL_min((sizeof(data) - offset), (size_t)size));
|
||||||
|
|
||||||
if (ctx->is_bluetooth) {
|
if (ctx->is_bluetooth) {
|
||||||
/* Bluetooth reports need a CRC at the end of the packet (at least on Linux) */
|
/* Bluetooth reports need a CRC at the end of the packet (at least on Linux) */
|
||||||
|
|
|
@ -711,7 +711,7 @@ HIDAPI_DriverPS5_SendJoystickEffect(SDL_HIDAPI_Device *device, SDL_Joystick *joy
|
||||||
offset = 1;
|
offset = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_memcpy(&data[offset], effect, SDL_min((sizeof(data) - offset), size));
|
SDL_memcpy(&data[offset], effect, SDL_min((sizeof(data) - offset), (size_t)size));
|
||||||
|
|
||||||
if (ctx->is_bluetooth) {
|
if (ctx->is_bluetooth) {
|
||||||
/* Bluetooth reports need a CRC at the end of the packet (at least on Linux) */
|
/* Bluetooth reports need a CRC at the end of the packet (at least on Linux) */
|
||||||
|
|
Loading…
Reference in New Issue