mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-25 21:31:49 +00:00
silence MSVC type narrowing warnings in fluid_cmd.c
This commit is contained in:
parent
7d9a02d836
commit
9052bad56c
1 changed files with 3 additions and 3 deletions
|
@ -1942,7 +1942,7 @@ fluid_handle_get(void *data, int ac, char **av, fluid_ostream_t out)
|
|||
|
||||
struct _fluid_handle_settings_data_t
|
||||
{
|
||||
int len;
|
||||
size_t len;
|
||||
fluid_synth_t *synth;
|
||||
fluid_ostream_t out;
|
||||
};
|
||||
|
@ -1951,7 +1951,7 @@ static void fluid_handle_settings_iter1(void *data, const char *name, int type)
|
|||
{
|
||||
struct _fluid_handle_settings_data_t *d = (struct _fluid_handle_settings_data_t *) data;
|
||||
|
||||
int len = FLUID_STRLEN(name);
|
||||
size_t len = FLUID_STRLEN(name);
|
||||
|
||||
if(len > d->len)
|
||||
{
|
||||
|
@ -1963,7 +1963,7 @@ static void fluid_handle_settings_iter2(void *data, const char *name, int type)
|
|||
{
|
||||
struct _fluid_handle_settings_data_t *d = (struct _fluid_handle_settings_data_t *) data;
|
||||
|
||||
int len = FLUID_STRLEN(name);
|
||||
size_t len = FLUID_STRLEN(name);
|
||||
fluid_ostream_printf(d->out, "%s", name);
|
||||
|
||||
while(len++ < d->len)
|
||||
|
|
Loading…
Reference in a new issue