diff options
author | David Robillard <d@drobilla.net> | 2016-07-31 18:03:25 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-31 18:03:25 -0400 |
commit | 4686e5199e359425fb11013ebf75dab423db3f8c (patch) | |
tree | d9913cf94779b7d72ee98de85ebf3fa87c128143 /src/range_trans.c | |
parent | 3e3b61724b16437a3181e80fcb75cc6f6b0a97ba (diff) |
Fix compilation with C++
Diffstat (limited to 'src/range_trans.c')
-rw-r--r-- | src/range_trans.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/range_trans.c b/src/range_trans.c index 5c32d91..667fba5 100644 --- a/src/range_trans.c +++ b/src/range_trans.c @@ -60,29 +60,29 @@ instantiate(const LV2_Descriptor* descriptor, static void connect_port(LV2_Handle instance, uint32_t port, - void* location) + void* data) { RangeTrans* plugin; plugin = (RangeTrans*)instance; switch (port) { case RANGETRANS_IN_MIN: - plugin->in_min = location; + plugin->in_min = (float*)data; break; case RANGETRANS_IN_MAX: - plugin->in_max = location; + plugin->in_max = (float*)data; break; case RANGETRANS_OUT_MIN: - plugin->out_min = location; + plugin->out_min = (float*)data; break; case RANGETRANS_OUT_MAX: - plugin->out_max = location; + plugin->out_max = (float*)data; break; case RANGETRANS_INPUT: - plugin->input = location; + plugin->input = (float*)data; break; case RANGETRANS_OUTPUT: - plugin->output = location; + plugin->output = (float*)data; break; } } |