From 2e7e3c156db3633dcb8e7d970fff79f22be39043 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Tue, 21 Apr 2009 08:29:02 -0500 Subject: [PATCH] fix volatile. --- library/dialect/swi.yap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/dialect/swi.yap b/library/dialect/swi.yap index bc1a0340e..0487f3937 100644 --- a/library/dialect/swi.yap +++ b/library/dialect/swi.yap @@ -184,7 +184,8 @@ prolog:volatile((G1,G2)) :- prolog:volatile(G1), prolog:volatile(G2). prolog:volatile(P) :- - do_volatile(P,_). + prolog_load_context(module, M), + do_volatile(P,M). prolog:load_foreign_library(P,Command) :- absolute_file_name(P,[file_type(executable),solutions(first),file_errors(fail)],Lib),