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; } Thread;
typedef union { typedef union {
uintptr_t value; uint32_t value;
void *pointer; void *pointer; // Bits outside of .value may be reset
} ThreadResult; } ThreadResult;
#define THREAD_NONE (Thread) { .handle = 0, } #define THREAD_NONE (Thread) { .handle = 0, }