From: Ivan Maidanski Date: Sat, 9 Jun 2018 17:25:20 +0000 (+0300) Subject: Fix 'need explicit cast to convert' compiler error in mprotect_dirty_init X-Git-Tag: v8.0.0~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3134dee3;p=gc Fix 'need explicit cast to convert' compiler error in mprotect_dirty_init (fix of commit 0fa40a7) * os_dep.c [MPROTECT_VDB && !DARWIN && MSWIN32] (GC_mprotect_dirty_init): Remove cast to signed_word when assigning SIG_DFL to GC_old_segv_handler. --- diff --git a/os_dep.c b/os_dep.c index c43f1280..cb71fe53 100644 --- a/os_dep.c +++ b/os_dep.c @@ -3435,7 +3435,7 @@ GC_API GC_push_other_roots_proc GC_CALL GC_get_push_other_roots(void) if (GC_old_segv_handler != NULL) { GC_COND_LOG_PRINTF("Replaced other UnhandledExceptionFilter\n"); } else { - GC_old_segv_handler = (signed_word)SIG_DFL; + GC_old_segv_handler = SIG_DFL; } # elif defined(MSWINCE) /* MPROTECT_VDB is unsupported for WinCE at present. */