From 5da51d615d89b2db82b13679c1a5fe43bb2be6d2 Mon Sep 17 00:00:00 2001 From: Costa Vitor Date: Wed, 3 Jun 2009 15:27:53 -0500 Subject: [PATCH] fix crashes in 64-bit mode with unknown predicates. --- C/globals.c | 2 +- H/Yapproto.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C/globals.c b/C/globals.c index 3255a80db..bd3b35820 100644 --- a/C/globals.c +++ b/C/globals.c @@ -1174,7 +1174,7 @@ p_nb_linkval(void) return TRUE; } -int +Term Yap_SetGlobalVal(Atom at, Term t0) { Term to; diff --git a/H/Yapproto.h b/H/Yapproto.h index 5882a592e..21914c2db 100644 --- a/H/Yapproto.h +++ b/H/Yapproto.h @@ -188,7 +188,7 @@ void STD_PROTO(Yap_inform_profiler_of_clause,(struct yami *,struct yami *,struct /* globals.c */ Term STD_PROTO(Yap_NewArena,(UInt,CELL *)); void STD_PROTO(Yap_InitGlobals,(void)); -int STD_PROTO(Yap_SetGlobalVal, (Atom, Term)); +Term STD_PROTO(Yap_SetGlobalVal, (Atom, Term)); void STD_PROTO(Yap_AllocateDefaultArena, (Int, Int)); /* grow.c */