From e8717e5b40e2f3a68e84bc4ec4c933c8ac624fb6 Mon Sep 17 00:00:00 2001 From: Marcus Weseloh Date: Wed, 4 Apr 2018 11:03:47 +0200 Subject: [PATCH] Remove explicit cast of FLUID_MALLOC return value --- src/sfloader/fluid_sffile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sfloader/fluid_sffile.c b/src/sfloader/fluid_sffile.c index 6dad5c90..6d47dba4 100644 --- a/src/sfloader/fluid_sffile.c +++ b/src/sfloader/fluid_sffile.c @@ -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");