mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-21 20:28:28 +00:00
Fixed compiler warnings on Visual Studio 2013
This commit is contained in:
parent
affab6ade5
commit
b425050baf
3 changed files with 4 additions and 5 deletions
|
@ -142,13 +142,13 @@ SDL_LoadVIDPIDListFromHint(const char *hint, SDL_vidpid_list *list)
|
|||
}
|
||||
|
||||
while ((spot = SDL_strstr(spot, "0x")) != NULL) {
|
||||
entry = SDL_strtol(spot, &spot, 0);
|
||||
entry = (Uint16)SDL_strtol(spot, &spot, 0);
|
||||
entry <<= 16;
|
||||
spot = SDL_strstr(spot, "0x");
|
||||
if (!spot) {
|
||||
break;
|
||||
}
|
||||
entry |= SDL_strtol(spot, &spot, 0);
|
||||
entry |= (Uint16)SDL_strtol(spot, &spot, 0);
|
||||
|
||||
if (list->num_entries == list->max_entries) {
|
||||
int max_entries = list->max_entries + 16;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue