Add missing type casts in remap and register_my_thread_inner
authorIvan Maidanski <ivmai@mail.ru>
Wed, 20 Jun 2018 08:35:55 +0000 (11:35 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 20 Jun 2018 08:35:55 +0000 (11:35 +0300)
commitb66a887d77e6294691ebf51628f87c15820aaf0c
tree289f5c326d95787c07c3658758172cc8c96d9677
parent5f4ebc01c800be6457cc94b9db18fd8c89e830ee
Add missing type casts in remap and register_my_thread_inner
(fix of commit a825a2d)

Issue #206 (bdwgc).

* os_dep.c [USE_MUNMAP && USE_WINALLOC] (GC_remap): Cast result of
VirtualAlloc to ptr_t.
* win32_threads.c [!GC_NO_THREADS_DISCOVERY]
(GC_register_my_thread_inner): Cast the first argument of
InterlockedExchange() call to word* (instead of void*).
os_dep.c
win32_threads.c