improve error handling

This commit is contained in:
Vitor Santos Costa 2013-07-22 10:40:47 -05:00
parent 45bf92fbed
commit ab372b03af

View File

@ -144,15 +144,15 @@ AllocCMem (UInt size, struct intermediates *cip)
} }
#else #else
char *p; char *p;
p = cip->freep;
cip->freep += size;
if (ASP <= CellPtr (cip->freep) + 256) { if (ASP <= CellPtr (cip->freep) + 256) {
CACHE_REGS CACHE_REGS
LOCAL_Error_Size = 256+((char *)cip->freep - (char *)H); LOCAL_Error_Size = 256+((char *)cip->freep - (char *)H);
save_machine_regs(); save_machine_regs();
siglongjmp(cip->CompilerBotch, OUT_OF_STACK_BOTCH); siglongjmp(cip->CompilerBotch, OUT_OF_STACK_BOTCH);
} }
return (p); p = cip->freep;
cip->freep += size;
return p;
#endif #endif
} }