mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed compiler warning on Visual Studio
This commit is contained in:
parent
fc78e98221
commit
c78476dadc
@ -668,9 +668,9 @@ SDL_GameControllerAddMappingsFromRW( SDL_RWops * rw, int freerw )
|
|||||||
if (rw == NULL) {
|
if (rw == NULL) {
|
||||||
return SDL_SetError("Invalid RWops");
|
return SDL_SetError("Invalid RWops");
|
||||||
}
|
}
|
||||||
db_size = SDL_RWsize(rw);
|
db_size = (size_t)SDL_RWsize(rw);
|
||||||
|
|
||||||
buf = (char *) SDL_malloc(db_size + 1);
|
buf = (char *)SDL_malloc(db_size + 1);
|
||||||
if (buf == NULL) {
|
if (buf == NULL) {
|
||||||
if (freerw) {
|
if (freerw) {
|
||||||
SDL_RWclose(rw);
|
SDL_RWclose(rw);
|
||||||
|
Loading…
Reference in New Issue
Block a user