Skip to content

Commit

Permalink
Modules - flexies latest, re issue #625
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Nov 12, 2024
1 parent 1136e23 commit 62e1fb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,7 @@ bool do_use_module_2(module *curr_m, cell *c)
cell tmp = *(lhs+1);
tmp.arity = get_smalluint(lhs+2);
predicate *pr = find_predicate(m, &tmp);
if (!pr) return false;
tmp.val_off = rhs->val_off;
do_import_predicate(curr_m, m, pr, &tmp);
} else if (is_structure(lhs) && (lhs->arity == 2)
Expand All @@ -1013,6 +1014,7 @@ bool do_use_module_2(module *curr_m, cell *c)
cell tmp = *(lhs+1);
tmp.arity = get_smalluint(lhs+2);
predicate *pr = find_predicate(m, &tmp);
if (!pr) return false;
tmp.val_off = (rhs+1)->val_off;
do_import_predicate(curr_m, m, pr, &tmp);
}
Expand All @@ -1024,6 +1026,7 @@ bool do_use_module_2(module *curr_m, cell *c)
cell tmp = *(lhs+1);
tmp.arity = get_smalluint(lhs+2);
predicate *pr = find_predicate(m, &tmp);
if (!pr) return false;
do_import_predicate(curr_m, m, pr, &pr->key);
}
}
Expand Down

0 comments on commit 62e1fb8

Please sign in to comment.