summaryrefslogtreecommitdiffstats
path: root/src/dom/util/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dom/util/thread.cpp')
-rw-r--r--src/dom/util/thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dom/util/thread.cpp b/src/dom/util/thread.cpp
index e8c06c850..d5368ef59 100644
--- a/src/dom/util/thread.cpp
+++ b/src/dom/util/thread.cpp
@@ -52,7 +52,7 @@ namespace util
static DWORD WINAPI WinThreadFunction(LPVOID context)
{
- Thread *thread = (Thread *)context;
+ Thread *thread = static_cast<Thread *>(context);
thread->execute();
return 0;
}
@@ -81,7 +81,7 @@ void Thread::sleep(unsigned long millis)
void *PthreadThreadFunction(void *context)
{
- Thread *thread = (Thread *)context;
+ Thread *thread = static_cast<Thread *>(context);
thread->execute();
return NULL;
}