aboutsummaryrefslogtreecommitdiffstats
path: root/src/signal_abs.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-31 18:03:25 -0400
committerDavid Robillard <d@drobilla.net>2016-07-31 18:03:25 -0400
commit4686e5199e359425fb11013ebf75dab423db3f8c (patch)
treed9913cf94779b7d72ee98de85ebf3fa87c128143 /src/signal_abs.c
parent3e3b61724b16437a3181e80fcb75cc6f6b0a97ba (diff)
Fix compilation with C++
Diffstat (limited to 'src/signal_abs.c')
-rw-r--r--src/signal_abs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/signal_abs.c b/src/signal_abs.c
index a81b282..742f292 100644
--- a/src/signal_abs.c
+++ b/src/signal_abs.c
@@ -57,20 +57,20 @@ instantiate(const LV2_Descriptor* descriptor,
static void
connect_port(LV2_Handle instance,
uint32_t port,
- void* location)
+ void* data)
{
SignalAbs* plugin;
plugin = (SignalAbs*)instance;
switch (port) {
case SIGNAL_ABS_SIGN:
- plugin->sign = location;
+ plugin->sign = (float*)data;
break;
case SIGNAL_ABS_INPUT1:
- plugin->input1 = location;
+ plugin->input1 = (float*)data;
break;
case SIGNAL_ABS_OUTPUT:
- plugin->output = location;
+ plugin->output = (float*)data;
break;
}
}