mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-28 14:08:28 +00:00
dialog: Use size_t for length variables (#9572)
Shuts up a warning about size differences.
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user