mirror of https://github.com/libsdl-org/SDL.git
Fixed warning C4244: '=': conversion from 'int' to 'Uint8', possible loss of data
This commit is contained in:
parent
919c012d29
commit
c24f860c4d
|
|
@ -158,7 +158,7 @@ typedef struct
|
|||
SDL_bool enhanced_reports;
|
||||
SDL_bool enhanced_mode;
|
||||
SDL_bool enhanced_mode_available;
|
||||
int report_interval;
|
||||
Uint8 report_interval;
|
||||
SDL_bool report_sensors;
|
||||
SDL_bool report_touchpad;
|
||||
SDL_bool report_battery;
|
||||
|
|
@ -815,7 +815,7 @@ static void SDLCALL SDL_PS4ReportIntervalHintChanged(void *userdata, const char
|
|||
}
|
||||
|
||||
if (new_report_interval != ctx->report_interval) {
|
||||
ctx->report_interval = new_report_interval;
|
||||
ctx->report_interval = (Uint8)new_report_interval;
|
||||
|
||||
HIDAPI_DriverPS4_UpdateEffects(ctx, SDL_FALSE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue