Skip to content

Commit

Permalink
FIXED: Possible assertion error due to unify refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Jun 8, 2024
1 parent fb45178 commit 353ea85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pl-prims.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ do_unify(DECL_LD Word t1, Word t2)
break;
if ( rc != DO_COMPOUND )
break;
rc = TRUE;

f1 = valueTerm(*t1);
f2 = valueTerm(*t2);
Expand All @@ -396,9 +397,7 @@ do_unify(DECL_LD Word t1, Word t2)
while ( isRef(f2->definition) )
f2 = (Functor)unRef(f2->definition);
if ( f1 == f2 )
{ rc = TRUE;
continue;
}
#endif

if ( f1->definition != f2->definition )
Expand Down

0 comments on commit 353ea85

Please sign in to comment.