summaryrefslogtreecommitdiffhomepage
path: root/src/con_.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/con_.c')
-rw-r--r--src/con_.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/con_.c b/src/con_.c
index b69b1a6..59f5ac4 100644
--- a/src/con_.c
+++ b/src/con_.c
@@ -515,7 +515,8 @@ GETTER(int, con_getvari, ival)
#define SETTER(T, I, N) \
void N(struct con_var *v, T x) { \
- ((void (*VCALLCONV)(struct con_var *, T))(v->vtable_iconvar[I]))(v, x); \
+ ((void (*VCALLCONV)(void *, T))(v->vtable_iconvar[I]))( \
+ &v->vtable_iconvar, x); \
}
// vtable indexes for str/int/float are consistently at the start, hooray.
// unfortunately the windows overload ordering meme still applies...