From 32ebfe00fd668af27e22922540b111a8981eb0e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Tue, 13 Dec 2011 22:20:28 +0000 Subject: [PATCH] use module in RunOnce. --- C/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C/exec.c b/C/exec.c index 8b4d3ddc5..4a3f91cbb 100644 --- a/C/exec.c +++ b/C/exec.c @@ -1264,7 +1264,7 @@ Yap_RunTopGoal(Term t) /* I cannot use the standard macro here because otherwise I would dereference the argument and might skip a svar */ - pe = PredPropByFunc(f, CurrentModule); + pe = PredPropByFunc(f, mod); pt = RepAppl(t)+1; arity = ArityOfFunctor(f); } else {