Skip to content

Commit bdf72d1

Browse files
committed
Univ bug with string as arg2, re issue #892
1 parent 5da92bd commit bdf72d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bif_predicates.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,8 @@ static bool bif_iso_univ_2(query *q)
16261626
}
16271627

16281628
if (is_var(p1)) {
1629-
cell *p22 = p2 + 1;
1629+
cell *p22 = p2;
1630+
if (is_iso_list(p2)) p22++;
16301631
p22 = deref(q, p22, p2_ctx);
16311632

16321633
if (is_var(p22))

0 commit comments

Comments
 (0)