fix stupid bug in setof (patch from U Neumerkel).

This commit is contained in:
Vitor Santos Costa 2010-07-14 00:24:26 +01:00
parent cfa665f320
commit e9c83142ad
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ bagof(Template, Generator, Bag) :-
'$excess_vars'((P,S), _, NY, L0, L).
'$excess_vars'(findall(X,P,S), findall(X,P,S), Y, L0, L) :- !,
'$excess_vars'(S, _, Y, L0, L).
'$excess_vars'(findall(X,P,S0,S), (X,P,S0,S), Y, L0, L) :- !,
'$excess_vars'(findall(X,P,S0,S), findall(X,P,S0,S), Y, L0, L) :- !,
'$excess_vars'(S, _, Y, L0, L).
'$excess_vars'(\+G, \+G, _, L0, LF) :- !,
L0 = LF.