diff --git a/C/init.c b/C/init.c index 247e8ab88..4bc81d7a7 100644 --- a/C/init.c +++ b/C/init.c @@ -231,6 +231,8 @@ OpDec(int p, char *type, Atom a, Term m) if (m == TermProlog) m = PROLOG_MODULE; + else if (m == USER_MODULE) + m = PROLOG_MODULE; for (i = 1; i <= 7; ++i) if (strcmp(type, optypes[i]) == 0) break;