1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00

reinterpret_cast not C-style cast. (The cast value is always 0).

This commit is contained in:
Paul Licameli 2018-11-15 10:54:26 -05:00
parent 7d0b4c582a
commit 41d0ac1b65

View File

@ -890,7 +890,7 @@ class AudioThread {
}
static void *callback(void *p) {
AudioThread *th = (AudioThread *)p;
return (void *)th->Entry();
return reinterpret_cast<void *>( th->Entry() );
}
void Run() {
pthread_create(&mThread, NULL, callback, this);