aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-sampler.lv2
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/eg-sampler.lv2')
-rw-r--r--plugins/eg-sampler.lv2/sampler.c4
-rw-r--r--plugins/eg-sampler.lv2/uris.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/eg-sampler.lv2/sampler.c b/plugins/eg-sampler.lv2/sampler.c
index 1557656..36acb2f 100644
--- a/plugins/eg-sampler.lv2/sampler.c
+++ b/plugins/eg-sampler.lv2/sampler.c
@@ -121,7 +121,7 @@ load_sample(LV2_Log_Logger* logger, const char* path)
}
// Read data
- float* const data = malloc(sizeof(float) * info->frames);
+ float* const data = (float*)malloc(sizeof(float) * info->frames);
if (!data) {
lv2_log_error(logger, "Failed to allocate memory for sample\n");
return NULL;
@@ -431,7 +431,7 @@ save(LV2_Handle instance,
return LV2_STATE_SUCCESS;
}
- LV2_State_Map_Path* map_path = lv2_features_data(
+ LV2_State_Map_Path* map_path = (LV2_State_Map_Path*)lv2_features_data(
features, LV2_STATE__mapPath);
if (!map_path) {
return LV2_STATE_ERR_NO_FEATURE;
diff --git a/plugins/eg-sampler.lv2/uris.h b/plugins/eg-sampler.lv2/uris.h
index fe0497f..ceeddc0 100644
--- a/plugins/eg-sampler.lv2/uris.h
+++ b/plugins/eg-sampler.lv2/uris.h
@@ -133,7 +133,7 @@ read_set_file(const SamplerURIs* uris,
return NULL;
}
- return LV2_ATOM_BODY_CONST(value);
+ return (const char*)LV2_ATOM_BODY_CONST(value);
}
#endif /* SAMPLER_URIS_H */