]> granicus.if.org Git - gc/commit
Eliminate warning about 64-bit pointer-to-int cast (Win64/pthreads-w32)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 24 Jun 2015 11:51:14 +0000 (14:51 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 24 Jun 2015 11:51:14 +0000 (14:51 +0300)
commit6936df7a071ac93f60bba765d895d753a66a8fca
treede0fa647069c8c59124c320bfc9822248abb033a
parente2a14481796cd4b073298a9c895b03015c72e02c
Eliminate warning about 64-bit pointer-to-int cast (Win64/pthreads-w32)

* include/private/gc_locks.h (NUMERIC_THREAD_ID): Cast to unsigned long
through "word" type if GC_WIN32_PTHREADS but not winpthreads (to
suppress "cast from pointer to integer of different size" compiler
warning).
* win32_threads.c (NUMERIC_THREAD_ID): Likewise.
* win32_threads.c (NUMERIC_THREAD_ID): Do not define unless
GC_ASSERTIONS.
include/private/gc_locks.h
win32_threads.c