diff options
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/error.c b/source/fitz/error.c index 8f4d6f50..ddbde925 100644 --- a/source/fitz/error.c +++ b/source/fitz/error.c @@ -123,7 +123,7 @@ FZ_NORETURN static void throw(fz_context *ctx) } } -void *fz_push_try(fz_context *ctx) +fz_jmp_buf *fz_push_try(fz_context *ctx) { /* If we would overflow the exception stack, throw an exception instead * of entering the try block. We assume that we always have room for @@ -154,7 +154,7 @@ void *fz_push_try(fz_context *ctx) ctx->error->top++; ctx->error->top->code = 0; } - return ctx->error->top->buffer; + return &ctx->error->top->buffer; } int fz_do_try(fz_context *ctx) |