src/stdlib/SDL_iconv.c
changeset 12962 a1a5dd21bc18
parent 12776 8eb9c7128f76
     1.1 --- a/src/stdlib/SDL_iconv.c	Wed Jul 31 00:05:28 2019 +0300
     1.2 +++ b/src/stdlib/SDL_iconv.c	Wed Jul 31 00:06:50 2019 +0300
     1.3 @@ -888,7 +888,7 @@
     1.4      }
     1.5  
     1.6      stringsize = inbytesleft > 4 ? inbytesleft : 4;
     1.7 -    string = SDL_malloc(stringsize);
     1.8 +    string = (char *) SDL_malloc(stringsize);
     1.9      if (!string) {
    1.10          SDL_iconv_close(cd);
    1.11          return NULL;
    1.12 @@ -904,7 +904,7 @@
    1.13              {
    1.14                  char *oldstring = string;
    1.15                  stringsize *= 2;
    1.16 -                string = SDL_realloc(string, stringsize);
    1.17 +                string = (char *) SDL_realloc(string, stringsize);
    1.18                  if (!string) {
    1.19                      SDL_iconv_close(cd);
    1.20                      return NULL;