Skip to content

Commit

Permalink
Fix build with Qt 5.6.2 (tilialabs#2)
Browse files Browse the repository at this point in the history
src/cpp/qtjambi/qtjambi_functions.cpp (AdoptedThread::AdoptedThread):
Add missing casts.

Fixes tilialabs#2.
  • Loading branch information
kkofler committed Feb 23, 2018
1 parent 436e8cf commit ca2ea49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/qtjambi/qtjambi_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class AdoptedThread : public QThread
d_func()->running = true;
d_func()->finished = false;
#ifdef Q_OS_UNIX
d_func()->data->threadId = pthread_self();
d_func()->data->threadId = reinterpret_cast<Qt::HANDLE>(static_cast<intptr_t>(pthread_self()));
#endif // Q_OS_UNIX

#ifdef Q_OS_WIN
Expand Down

0 comments on commit ca2ea49

Please sign in to comment.