Skip to content

Commit bc296ad

Browse files
committed
No goal_expansion of head, re issue #901
1 parent 94ab0e2 commit bc296ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/parser.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,9 @@ static cell *term_to_body_conversion(parser *p, cell *c)
22732273
if ((c->val_off != g_neck_s))
22742274
lhs = goal_expansion(p, lhs);
22752275

2276-
lhs = term_to_body_conversion(p, lhs);
2276+
if (!is_head)
2277+
lhs = term_to_body_conversion(p, lhs);
2278+
22772279
lhs->arity -= extra;
22782280
}
22792281

0 commit comments

Comments
 (0)