improve error handling

This commit is contained in:
Vitor Santos Costa 2013-07-22 10:40:47 -05:00
parent 45bf92fbed
commit ab372b03af
1 changed files with 4 additions and 4 deletions

View File

@ -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
}