Skip to content

Commit

Permalink
Merge pull request #12517 from xavierleroy/constant-logical-operand
Browse files Browse the repository at this point in the history
Avoid the "constant-logical-operand" warning of recent clang versions
  • Loading branch information
dra27 authored Aug 31, 2023
2 parents 15ef93c + fb7d41b commit a3a82ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/printexc.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static void default_fatal_uncaught_exception(value exn)
fprintf(stderr, "Fatal error: exception %s\n", msg);
caml_stat_free(msg);
/* Display the backtrace if available */
if (Caml_state->backtrace_active && !DEBUGGER_IN_USE)
if (!DEBUGGER_IN_USE && Caml_state->backtrace_active)
caml_print_exception_backtrace();
}

Expand Down

0 comments on commit a3a82ee

Please sign in to comment.