mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-05-10 07:21:08 +00:00
Remove explicit cast of FLUID_MALLOC return value
This commit is contained in:
parent
c7e579aa75
commit
e8717e5b40
1 changed files with 2 additions and 2 deletions
|
@ -393,7 +393,7 @@ int fluid_sffile_read_sample_data(SFData *sf, unsigned int start, unsigned int c
|
|||
goto error_exit;
|
||||
}
|
||||
|
||||
loaded_data = (short *)FLUID_MALLOC(count * 2);
|
||||
loaded_data = FLUID_MALLOC(count * 2);
|
||||
if (loaded_data == NULL)
|
||||
{
|
||||
FLUID_LOG(FLUID_ERR, "Out of memory");
|
||||
|
@ -425,7 +425,7 @@ int fluid_sffile_read_sample_data(SFData *sf, unsigned int start, unsigned int c
|
|||
goto error_exit;
|
||||
}
|
||||
|
||||
loaded_data24 = (char *)FLUID_MALLOC(count);
|
||||
loaded_data24 = FLUID_MALLOC(count);
|
||||
if (loaded_data24 == NULL)
|
||||
{
|
||||
FLUID_LOG(FLUID_ERR, "Out of memory");
|
||||
|
|
Loading…
Reference in a new issue