aboutsummaryrefslogtreecommitdiffstats
path: root/src/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.c')
-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));