fix retry_head to work correctly if the argument is dereferenced.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@638 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
153b2cb2a3
commit
4a71cbda80
@ -6508,8 +6508,8 @@ absmi(int inp)
|
|||||||
d0 = ARG1;
|
d0 = ARG1;
|
||||||
/* deref it first */
|
/* deref it first */
|
||||||
deref_head(d0,retry_tail_unk);
|
deref_head(d0,retry_tail_unk);
|
||||||
PREG = (yamop *) (PREG->u.ld.d);
|
|
||||||
retry_tail_nvar:
|
retry_tail_nvar:
|
||||||
|
PREG = (yamop *) (PREG->u.ld.d);
|
||||||
if (IsPairTerm(d0)) {
|
if (IsPairTerm(d0)) {
|
||||||
/* pair */
|
/* pair */
|
||||||
SREG = RepPair(d0)+1;
|
SREG = RepPair(d0)+1;
|
||||||
|
Reference in New Issue
Block a user