aboutsummaryrefslogtreecommitdiffstats
path: root/src/branch.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/branch.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/branch.c')
-rw-r--r--src/branch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/branch.c b/src/branch.c
index 70329a2..4625e5c 100644
--- a/src/branch.c
+++ b/src/branch.c
@@ -75,7 +75,7 @@ runBranch_ia_oaoa(LV2_Handle instance,
Branch* plugin = (Branch*)instance;
/* Input (array of floats of length sample_count) */
- float* input = plugin->input;
+ const float* input = plugin->input;
/* First Output (array of floats of length sample_count) */
float* output1 = plugin->output1;
@@ -100,7 +100,7 @@ runBranch_ic_ococ(LV2_Handle instance,
Branch* plugin = (Branch*)instance;
/* Input (float value) */
- float input = *(plugin->input);
+ const float input = *(plugin->input);
/* First Output (pointer to float value) */
float* output1 = plugin->output1;