dialog: Use size_t for length variables (#9572)

Shuts up a warning about size differences.
main
devon-artmeier 2024-04-18 12:09:10 -04:00 committed by GitHub
parent 1de8a53015
commit 9c65738926
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ char *convert_filters(const SDL_DialogFileFilter *filters, NameTransform ntf,
char *new_combined; char *new_combined;
char *converted; char *converted;
const char *terminator; const char *terminator;
int new_length; size_t new_length;
combined = SDL_strdup(prefix); combined = SDL_strdup(prefix);
@ -82,7 +82,7 @@ char *convert_filter(const SDL_DialogFileFilter filter, NameTransform ntf,
{ {
char *converted; char *converted;
char *name_filtered; char *name_filtered;
int total_length; size_t total_length;
char *list; char *list;
list = convert_ext_list(filter.pattern, ext_prefix, ext_separator, list = convert_ext_list(filter.pattern, ext_prefix, ext_separator,
@ -131,7 +131,7 @@ char *convert_ext_list(const char *list, const char *prefix,
{ {
char *converted; char *converted;
int semicolons; int semicolons;
int total_length; size_t total_length;
semicolons = 0; semicolons = 0;