From ab372b03af1d5bbb877400c54b7481960203ca7c Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 22 Jul 2013 10:40:47 -0500 Subject: [PATCH] improve error handling --- C/computils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/C/computils.c b/C/computils.c index a11d96173..7716f8ecc 100644 --- a/C/computils.c +++ b/C/computils.c @@ -144,15 +144,15 @@ AllocCMem (UInt size, struct intermediates *cip) } #else char *p; - p = cip->freep; - cip->freep += size; if (ASP <= CellPtr (cip->freep) + 256) { CACHE_REGS LOCAL_Error_Size = 256+((char *)cip->freep - (char *)H); save_machine_regs(); siglongjmp(cip->CompilerBotch, OUT_OF_STACK_BOTCH); - } - return (p); + } + p = cip->freep; + cip->freep += size; + return p; #endif }