Take care to process heap overflows correctly.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@992 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2004-02-17 16:27:22 +00:00
parent 7d7b79630f
commit 860ea6d115
3 changed files with 77 additions and 15 deletions

View File

@@ -1122,6 +1122,7 @@ Yap_absmi(int inp)
/* restart index */
setregs();
PREG = ipc;
if (PREG == NULL) FAIL();
CACHED_A1() = ARG1;
#if defined(YAPOR) || defined(THREADS)
PP = ap;