Skip to content
Snippets Groups Projects
Commit 88a2a599 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

emscripten: add cast for pthread_self()

This commit avoids an implicit cast from pthread_t * to unsigned long.
parent 5483b465
No related branches found
No related tags found
1 merge request!2599emscripten: fix pthread_self warnings
Pipeline #270016 passed with stage
in 15 minutes and 50 seconds
......@@ -22,11 +22,13 @@
# include "config.h"
#endif
#include <vlc_common.h>
#include <vlc_threads.h>
#include <pthread.h>
#include <assert.h>
unsigned long vlc_thread_id(void)
{
static_assert(sizeof(pthread_t) <= sizeof(unsigned long),"invalid pthread_t size");
return pthread_self();
return (uintptr_t)(void *)pthread_self();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment