fix PL_is_list
This commit is contained in:
parent
daf9f589b9
commit
b0ddda1fde
@ -1799,7 +1799,7 @@ X_API int PL_is_list(term_t ts)
|
|||||||
{
|
{
|
||||||
CACHE_REGS
|
CACHE_REGS
|
||||||
YAP_Term t = Yap_GetFromSlot(ts PASS_REGS);
|
YAP_Term t = Yap_GetFromSlot(ts PASS_REGS);
|
||||||
return Yap_IsListTerm(t);
|
return !IsVarTerm(t) && (t == TermNil || IsPairTerm(t));
|
||||||
}
|
}
|
||||||
|
|
||||||
X_API int
|
X_API int
|
||||||
|
Reference in New Issue
Block a user