Don't guarantee more than 32-bit thread result

This commit is contained in:
Vftdan 2024-10-25 02:04:21 +02:00
parent 6b76570afd
commit c4b801b761
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ typedef union {
} Thread;
typedef union {
uintptr_t value;
void *pointer;
uint32_t value;
void *pointer; // Bits outside of .value may be reset
} ThreadResult;
#define THREAD_NONE (Thread) { .handle = 0, }