aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/System/Win32/ThreadLocal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Win32/ThreadLocal.inc b/lib/System/Win32/ThreadLocal.inc
index 0ba3be451e..8ab37d9d75 100644
--- a/lib/System/Win32/ThreadLocal.inc
+++ b/lib/System/Win32/ThreadLocal.inc
@@ -42,7 +42,7 @@ const void* ThreadLocalImpl::getInstance() {
void ThreadLocalImpl::setInstance(const void* d){
DWORD* tls = static_cast<DWORD*>(data);
- int errorcode = TlsSetValue(*tls, d);
+ int errorcode = TlsSetValue(*tls, const_cast<void*>(d));
assert(errorcode == 0);
}