From 3134dee37b04dee538cb1eb8d1cc9a2f8a922e97 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sat, 9 Jun 2018 20:25:20 +0300 Subject: [PATCH] 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. --- os_dep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_dep.c b/os_dep.c index c43f128..cb71fe5 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. */ -- 2.7.4