fix stream is not an atom (Ulrich).

This commit is contained in:
Vítor Santos Costa 2012-03-01 22:03:41 +00:00
parent 67cd8b303e
commit 45baf800dd
2 changed files with 3 additions and 3 deletions

View File

@ -8562,7 +8562,7 @@ Yap_absmi(int inp)
d0 = XREG(PREG->u.xl.x);
deref_head(d0, atom_x_unk);
atom_x_nvar:
if (IsAtomTerm(d0)) {
if (IsAtomTerm(d0) && !IsBlob(AtomOfTerm(d0))) {
PREG = NEXTOP(PREG, xl);
GONext();
}
@ -8586,7 +8586,7 @@ Yap_absmi(int inp)
d0 = *pt0;
deref_head(d0, atom_y_unk);
atom_y_nvar:
if (IsAtomTerm(d0)) {
if (IsAtomTerm(d0) && !IsBlob(AtomOfTerm(d0))) {
PREG = NEXTOP(PREG, yl);
GONext();
}

View File

@ -47,7 +47,7 @@ p_atom( USES_REGS1 )
d0 = ARG1;
deref_head(d0, atom_unk);
atom_nvar:
if (IsAtomTerm(d0)) {
if (IsAtomTerm(d0) && !IsBlob(AtomOfTerm(d0))) {
return(TRUE);
}
else {