aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-17 03:14:34 +0000
committerDavid Robillard <d@drobilla.net>2013-12-17 03:14:34 +0000
commita47e984e2c08364eae88c2ea5a9edb15883bb3fe (patch)
treeb9647d723b5a31b85b23e4480e74e32d4065f503 /src
parent277aa925a66e7009a735fa389ee30670b8b00456 (diff)
downloadjalv-a47e984e2c08364eae88c2ea5a9edb15883bb3fe.tar.gz
jalv-a47e984e2c08364eae88c2ea5a9edb15883bb3fe.tar.bz2
jalv-a47e984e2c08364eae88c2ea5a9edb15883bb3fe.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/state.c8
1 files 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));