Skip to content

Commit

Permalink
Confusion, re issue #588
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Sep 8, 2024
1 parent 56dd01e commit fdb8237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,7 @@ static rule *assert_begin(module *m, unsigned nbr_vars, cell *p1, bool consultin
//module_dump_term(save_m, p1);
c = get_head(p1);

if (is_string(c)) {
if (!is_callable(c) || is_iso_list(c)) {
if (consulting)
fprintf(stdout, "Error: not callable %s:(%s)/%u\n", m->name, C_STR(m, c), c->arity);

Expand All @@ -1653,7 +1653,7 @@ static rule *assert_begin(module *m, unsigned nbr_vars, cell *p1, bool consultin
} else
m = tmp_m;

if (is_string(p1+2)) {
if (!is_callable(p1+2) || is_iso_list(p1+2)) {
if (consulting)
fprintf(stdout, "Error: not callable %s:(%s)/%u\n", m->name, C_STR(m, c), c->arity);

Expand Down

0 comments on commit fdb8237

Please sign in to comment.