From 6f3d2fef5d1b2ef4ee969465585c582e4fbca8e6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 22 May 2012 21:28:00 +0000 Subject: Don't cast inputs to non-const pointers. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blip.lv2@4437 a436a847-0d15-0410-975c-d299462d15a1 --- src/sawtooth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sawtooth.c') diff --git a/src/sawtooth.c b/src/sawtooth.c index fcef953..24aa529 100644 --- a/src/sawtooth.c +++ b/src/sawtooth.c @@ -89,7 +89,7 @@ runSawtooth_fa_oa(LV2_Handle instance, Sawtooth* plugin = (Sawtooth*)instance; /* Frequency (array of float of length sample_count) */ - float* frequency = plugin->frequency; + const float* frequency = plugin->frequency; /* Output (pointer to float value) */ float* output = plugin->output; @@ -126,7 +126,7 @@ runSawtooth_fc_oa(LV2_Handle instance, Sawtooth* plugin = (Sawtooth*)instance; /* Frequency (float value) */ - float frequency = *(plugin->frequency); + const float frequency = *(plugin->frequency); /* Output (pointer to float value) */ float* output = plugin->output; -- cgit v1.2.1