aboutsummaryrefslogtreecommitdiffstats
path: root/src/sync_pulse.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-22 21:28:00 +0000
committerDavid Robillard <d@drobilla.net>2012-05-22 21:28:00 +0000
commit6f3d2fef5d1b2ef4ee969465585c582e4fbca8e6 (patch)
tree49ee2ddc91552ae1e9f82106528bc17248a6f8dd /src/sync_pulse.c
parent8fee183109728ec2fad88d332940b93a1d882c20 (diff)
downloadblop.lv2-6f3d2fef5d1b2ef4ee969465585c582e4fbca8e6.tar.gz
blop.lv2-6f3d2fef5d1b2ef4ee969465585c582e4fbca8e6.tar.bz2
blop.lv2-6f3d2fef5d1b2ef4ee969465585c582e4fbca8e6.zip
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
Diffstat (limited to 'src/sync_pulse.c')
-rw-r--r--src/sync_pulse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sync_pulse.c b/src/sync_pulse.c
index 4dc9dad..96f90c7 100644
--- a/src/sync_pulse.c
+++ b/src/sync_pulse.c
@@ -93,13 +93,13 @@ runSyncPulse_fapaga_oa(LV2_Handle instance,
SyncPulse* plugin = (SyncPulse*)instance;
/* Frequency (array of float of length sample_count) */
- float* frequency = plugin->frequency;
+ const float* frequency = plugin->frequency;
/* Pulse Width (array of float of length sample_count) */
float* pulsewidth = plugin->pulsewidth;
/* Gate (array of float of length sample_count) */
- float* gate = plugin->gate;
+ const float* gate = plugin->gate;
/* Output (pointer to float value) */
float* output = plugin->output;
@@ -144,13 +144,13 @@ runSyncPulse_fcpcga_oa(LV2_Handle instance,
SyncPulse* plugin = (SyncPulse*)instance;
/* Frequency (float value) */
- float frequency = *(plugin->frequency);
+ const float frequency = *(plugin->frequency);
/* Pulse Width (float value) */
float pulsewidth = f_clip(*(plugin->pulsewidth), 0.0f, 1.0f);
/* Gate (array of float of length sample_count) */
- float* gate = plugin->gate;
+ const float* gate = plugin->gate;
/* Output (pointer to float value) */
float* output = plugin->output;