summaryrefslogtreecommitdiffstats
path: root/src/jv_dtoa_tsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jv_dtoa_tsd.c')
-rw-r--r--src/jv_dtoa_tsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jv_dtoa_tsd.c b/src/jv_dtoa_tsd.c
index 0f95df4f..85d5beb4 100644
--- a/src/jv_dtoa_tsd.c
+++ b/src/jv_dtoa_tsd.c
@@ -10,9 +10,9 @@
static pthread_key_t dtoa_ctx_key;
static pthread_once_t dtoa_ctx_once = PTHREAD_ONCE_INIT;
-static void tsd_dtoa_ctx_dtor(struct dtoa_context *ctx) {
+static void tsd_dtoa_ctx_dtor(void *ctx) {
if (ctx) {
- jvp_dtoa_context_free(ctx);
+ jvp_dtoa_context_free((struct dtoa_context *)ctx);
jv_mem_free(ctx);
}
}