From c8713e92312ef140ea8576031769cdad10b30946 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Dec 2020 16:51:04 +0100 Subject: Fix implicit and narrowing conversions --- plugins/eg-scope.lv2/examploscope.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/eg-scope.lv2/examploscope.c') diff --git a/plugins/eg-scope.lv2/examploscope.c b/plugins/eg-scope.lv2/examploscope.c index e175804..af0e302 100644 --- a/plugins/eg-scope.lv2/examploscope.c +++ b/plugins/eg-scope.lv2/examploscope.c @@ -124,7 +124,7 @@ instantiate(const LV2_Descriptor* descriptor, // Set default UI settings self->ui_spp = 50; - self->ui_amp = 1.0; + self->ui_amp = 1.0f; // Map URIs and initialise forge/logger map_sco_uris(self->map, &self->uris); @@ -252,7 +252,7 @@ run(LV2_Handle handle, uint32_t n_samples) lv2_atom_forge_key(&self->forge, self->uris.ui_amp); lv2_atom_forge_float(&self->forge, self->ui_amp); lv2_atom_forge_key(&self->forge, self->uris.param_sampleRate); - lv2_atom_forge_float(&self->forge, self->rate); + lv2_atom_forge_float(&self->forge, (float)self->rate); lv2_atom_forge_pop(&self->forge, &frame); } -- cgit v1.2.1