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/prob_switch.c | |
parent | 3e3b61724b16437a3181e80fcb75cc6f6b0a97ba (diff) |
Fix compilation with C++
Diffstat (limited to 'src/prob_switch.c')
-rw-r--r-- | src/prob_switch.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/prob_switch.c b/src/prob_switch.c index 1f97a23..ac0d4fb 100644 --- a/src/prob_switch.c +++ b/src/prob_switch.c @@ -58,24 +58,24 @@ instantiate(const LV2_Descriptor* descriptor, /* Connect a port to a data location */ static void connect_port(LV2_Handle instance, - uint32_t port, - void* location) + uint32_t port, + void* data) { ProbSwitch* plugin; plugin = (ProbSwitch*)instance; switch (port) { case PROBSWITCH_INPUT2: - plugin->input2 = location; + plugin->input2 = (float*)data; break; case PROBSWITCH_PROB: - plugin->prob = location; + plugin->prob = (float*)data; break; case PROBSWITCH_INPUT1: - plugin->input1 = location; + plugin->input1 = (float*)data; break; case PROBSWITCH_OUTPUT: - plugin->output = location; + plugin->output = (float*)data; break; } } |