diff options
author | David Robillard <d@drobilla.net> | 2012-05-22 21:28:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-22 21:28:00 +0000 |
commit | 6f3d2fef5d1b2ef4ee969465585c582e4fbca8e6 (patch) | |
tree | 49ee2ddc91552ae1e9f82106528bc17248a6f8dd /src/triangle.c | |
parent | 8fee183109728ec2fad88d332940b93a1d882c20 (diff) | |
download | blop.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/triangle.c')
-rw-r--r-- | src/triangle.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/triangle.c b/src/triangle.c index 00964df..0a06f6c 100644 --- a/src/triangle.c +++ b/src/triangle.c @@ -99,10 +99,10 @@ runTriangle_fasa_oa(LV2_Handle instance, Triangle* plugin = (Triangle*)instance; /* Frequency (array of float of length sample_count) */ - float* frequency = plugin->frequency; + const float* frequency = plugin->frequency; /* Slope (array of float of length sample_count) */ - float* slope = plugin->slope; + const float* slope = plugin->slope; /* Output (pointer to float value) */ float* output = plugin->output; @@ -149,7 +149,7 @@ runTriangle_fasc_oa(LV2_Handle instance, Triangle* plugin = (Triangle*)instance; /* Frequency (array of float of length sample_count) */ - float* frequency = plugin->frequency; + const float* frequency = plugin->frequency; /* Slope (float value) */ float slope = *(plugin->slope); @@ -200,10 +200,10 @@ runTriangle_fcsa_oa(LV2_Handle instance, Triangle* plugin = (Triangle*)instance; /* Frequency (float value) */ - float frequency = *(plugin->frequency); + const float frequency = *(plugin->frequency); /* Slope (array of float of length sample_count) */ - float* slope = plugin->slope; + const float* slope = plugin->slope; /* Output (pointer to float value) */ float* output = plugin->output; @@ -247,7 +247,7 @@ runTriangle_fcsc_oa(LV2_Handle instance, Triangle* plugin = (Triangle*)instance; /* Frequency (float value) */ - float frequency = *(plugin->frequency); + const float frequency = *(plugin->frequency); /* Slope (float value) */ float slope = *(plugin->slope); |