Fix 'need explicit cast to convert' compiler error in mprotect_dirty_init
authorIvan Maidanski <ivmai@mail.ru>
Sat, 9 Jun 2018 17:25:20 +0000 (20:25 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 9 Jun 2018 17:25:20 +0000 (20:25 +0300)
(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

index c43f128..cb71fe5 100644 (file)
--- 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.      */