mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-26 09:14:25 +00:00
Fixed warning C4090: 'function': different 'const' qualifiers
This commit is contained in:
@@ -29,7 +29,7 @@ static const SDL_Locale * const *build_locales_from_csv_string(char *csv, int *c
|
||||
size_t alloclen;
|
||||
char *ptr;
|
||||
SDL_Locale *loc;
|
||||
const SDL_Locale **retval;
|
||||
SDL_Locale **retval;
|
||||
|
||||
if (count) {
|
||||
*count = 0;
|
||||
@@ -52,7 +52,7 @@ static const SDL_Locale * const *build_locales_from_csv_string(char *csv, int *c
|
||||
slen = ((size_t)(ptr - csv)) + 1; /* SDL_strlen(csv) + 1 */
|
||||
alloclen = (num_locales * sizeof(SDL_Locale *)) + (num_locales * sizeof(SDL_Locale)) + slen;
|
||||
|
||||
retval = (const SDL_Locale **)SDL_calloc(1, alloclen);
|
||||
retval = (SDL_Locale **)SDL_calloc(1, alloclen);
|
||||
if (!retval) {
|
||||
return NULL; /* oh well */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user