From: Rhys Weatherley Date: Tue, 2 Nov 2004 06:22:07 +0000 (+0000) Subject: Return 0 when a sub-function throws an exception, not 1. X-Git-Tag: r.0.0.6~27 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=0619711be1e0457d11212618d63f2016e0cb348c;p=francis%2Flibjit.git Return 0 when a sub-function throws an exception, not 1. --- 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