diff options
Diffstat (limited to 'implement.h')
-rw-r--r-- | implement.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/implement.h b/implement.h index 8f0a8f2..7a3e0a2 100644 --- a/implement.h +++ b/implement.h @@ -205,7 +205,7 @@ struct sem_t_ #endif }; -#define PTW32_OBJECT_AUTO_INIT ((void *) -1) +#define PTW32_OBJECT_AUTO_INIT ((void *)(size_t) -1) #define PTW32_OBJECT_INVALID NULL struct pthread_mutex_t_ @@ -549,7 +549,7 @@ struct ThreadKeyAssoc extern DWORD (*ptw32_register_cancelation) (PAPCFUNC, HANDLE, DWORD); /* Thread Reuse stack bottom marker. Must not be NULL or any valid pointer to memory. */ -#define PTW32_THREAD_REUSE_EMPTY ((ptw32_thread_t *) 1) +#define PTW32_THREAD_REUSE_EMPTY ((ptw32_thread_t *)(size_t) 1) extern int ptw32_processInitialized; extern ptw32_thread_t * ptw32_threadReuseTop; |