Skip to content

Commit d9fa0e0

Browse files
committed
Fix compilation errors
1 parent 0996696 commit d9fa0e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libunwind/src/Unwind-seh.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ _GCC_specific_handler(PEXCEPTION_RECORD ms_exc, PVOID frame, PCONTEXT ms_ctx,
163163
// If we were called by __libunwind_seh_personality(), indicate that
164164
// a handler was found; otherwise, initiate phase 2 by unwinding.
165165
if (ours && ms_exc->NumberParameters > 1)
166-
return 4 /* ExceptionExecuteHandler in mingw */;
166+
return (EXCEPTION_DISPOSITION)4 /* ExceptionExecuteHandler in mingw */;
167167
// This should never happen in phase 2.
168168
if (IS_UNWINDING(ms_exc->ExceptionFlags))
169169
_LIBUNWIND_ABORT("Personality indicated exception handler in phase 2!");
@@ -181,7 +181,7 @@ _GCC_specific_handler(PEXCEPTION_RECORD ms_exc, PVOID frame, PCONTEXT ms_ctx,
181181
// a handler was found; otherwise, it's time to initiate a collided
182182
// unwind to the target.
183183
if (ours && !IS_UNWINDING(ms_exc->ExceptionFlags) && ms_exc->NumberParameters > 1)
184-
return 4 /* ExceptionExecuteHandler in mingw */;
184+
return (EXCEPTION_DISPOSITION)4 /* ExceptionExecuteHandler in mingw */;
185185
// This should never happen in phase 1.
186186
if (!IS_UNWINDING(ms_exc->ExceptionFlags))
187187
_LIBUNWIND_ABORT("Personality installed context during phase 1!");

0 commit comments

Comments
 (0)