use module in RunOnce.
This commit is contained in:
		
							
								
								
									
										2
									
								
								C/exec.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								C/exec.c
									
									
									
									
									
								
							@@ -1264,7 +1264,7 @@ Yap_RunTopGoal(Term t)
 | 
				
			|||||||
    /* I cannot use the standard macro here because
 | 
					    /* I cannot use the standard macro here because
 | 
				
			||||||
       otherwise I would dereference the argument and
 | 
					       otherwise I would dereference the argument and
 | 
				
			||||||
       might skip a svar */
 | 
					       might skip a svar */
 | 
				
			||||||
    pe = PredPropByFunc(f, CurrentModule);
 | 
					    pe = PredPropByFunc(f, mod);
 | 
				
			||||||
    pt = RepAppl(t)+1;
 | 
					    pt = RepAppl(t)+1;
 | 
				
			||||||
    arity = ArityOfFunctor(f); 
 | 
					    arity = ArityOfFunctor(f); 
 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user