Fixed Visual Studio warning 4389
This commit is contained in:
@@ -4698,7 +4698,7 @@ static SDL_bool SDL_IsMessageboxValidForDriver(const SDL_MessageBoxData *message
|
||||
if (window == NULL || SDL_GetWindowWMInfo(window, &info, SDL_SYSWM_CURRENT_VERSION) < 0) {
|
||||
return SDL_TRUE;
|
||||
} else {
|
||||
return info.subsystem == drivertype;
|
||||
return info.subsystem == (Uint32)drivertype;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1673,7 +1673,7 @@ static void IME_RenderCandidateList(SDL_VideoData *videodata, HDC hdc)
|
||||
bottom = size.cy - listborder - listpadding - candmargin;
|
||||
}
|
||||
|
||||
if (i == videodata->ime_candsel) {
|
||||
if ((DWORD)i == videodata->ime_candsel) {
|
||||
SelectObject(hdc, selpen);
|
||||
SelectObject(hdc, selbrush);
|
||||
SetTextColor(hdc, seltextcolor);
|
||||
|
||||
@@ -491,7 +491,7 @@ void SDL_TARGETING("sse2") SSE_FUNCTION_NAME(uint32_t width, uint32_t height,
|
||||
|
||||
/* Catch the right column, if needed */
|
||||
{
|
||||
int converted = (width & ~31);
|
||||
uint32_t converted = (width & ~31);
|
||||
if (fix_read_nv12) {
|
||||
converted -= 32;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user