Skip to content

Commit 3976830

Browse files
committed
cast thread result to platform dependent type (#267)
1 parent 0338651 commit 3976830

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libde265/threads.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static THREAD_RESULT worker_thread(THREAD_PARAM pool_ptr)
210210

211211
if (pool->stopped) {
212212
de265_mutex_unlock(&pool->mutex);
213-
return NULL;
213+
return (THREAD_RESULT)0;
214214
}
215215

216216

@@ -238,7 +238,7 @@ static THREAD_RESULT worker_thread(THREAD_PARAM pool_ptr)
238238
}
239239
de265_mutex_unlock(&pool->mutex);
240240

241-
return NULL;
241+
return (THREAD_RESULT)0;
242242
}
243243

244244

0 commit comments

Comments
 (0)