From 0619711be1e0457d11212618d63f2016e0cb348c Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Tue, 2 Nov 2004 06:22:07 +0000 Subject: [PATCH] Return 0 when a sub-function throws an exception, not 1. --- ChangeLog | 3 +++ jit/jit-function.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b56df3e..7221900 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ and fixup lists if we need to restart on a new cache page (minor alterations by Rhys). + * jit/jit-function.c (jit_function_apply_vararg): return 0 when a + sub-function throws an exception, not 1. + 2004-10-31 Rhys Weatherley * jit/jit-rules-x86.sel: handle the special case of constant diff --git a/jit/jit-function.c b/jit/jit-function.c index 8d19d26..54d6ad6 100644 --- a/jit/jit-function.c +++ b/jit/jit-function.c @@ -1195,7 +1195,7 @@ int jit_function_apply_vararg if(setjmp(jbuf.buf)) { _jit_unwind_pop_setjmp(); - return 1; + return 0; } /* Create a backtrace entry that blocks exceptions from -- 2.47.3