From a47e984e2c08364eae88c2ea5a9edb15883bb3fe Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 17 Dec 2013 03:14:34 +0000 Subject: Fix more const issues. Require latest LV2 svn for Ingen (fix #945). git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5174 a436a847-0d15-0410-975c-d299462d15a1 --- src/state.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/state.c b/src/state.c index 166cd0e..4e9cdd7 100644 --- a/src/state.c +++ b/src/state.c @@ -134,13 +134,13 @@ set_port_value(const char* port_symbol, float fvalue; if (type == jalv->forge.Float) { - fvalue = *(float*)value; + fvalue = *(const float*)value; } else if (type == jalv->forge.Double) { - fvalue = *(double*)value; + fvalue = *(const double*)value; } else if (type == jalv->forge.Int) { - fvalue = *(int32_t*)value; + fvalue = *(const int32_t*)value; } else if (type == jalv->forge.Long) { - fvalue = *(int64_t*)value; + fvalue = *(const int64_t*)value; } else { fprintf(stderr, "error: Preset `%s' value has bad type <%s>\n", port_symbol, jalv->unmap.unmap(jalv->unmap.handle, type)); -- cgit v1.2.1