aboutsummaryrefslogtreecommitdiffhomepage
path: root/iothread.h
diff options
context:
space:
mode:
Diffstat (limited to 'iothread.h')
-rw-r--r--iothread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iothread.h b/iothread.h
index ac328ace..8ac3bd9d 100644
--- a/iothread.h
+++ b/iothread.h
@@ -42,7 +42,7 @@ int iothread_perform(int (*handler)(T *), void (*completionCallback)(T *, int),
template<typename T>
int iothread_perform_on_main(int (*handler)(T *), T *context)
{
- return iothread_perform_on_main_base((int (*)(void *))handler, static_cast<void *>(context));
+ return iothread_perform_on_main_base((int (*)(void *))handler, (void *)(context));
}