From 5e7c08fff7d5f59b8d4d869f301b2a9abca3bcb0 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 1 Aug 2016 20:23:23 -0500 Subject: [PATCH] interface --- packages/yap-lbfgs/yap_lbfgs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/yap-lbfgs/yap_lbfgs.c b/packages/yap-lbfgs/yap_lbfgs.c index e04baf40f..fbf224101 100644 --- a/packages/yap-lbfgs/yap_lbfgs.c +++ b/packages/yap-lbfgs/yap_lbfgs.c @@ -78,14 +78,11 @@ static lbfgsfloatval_t evaluate( a1 = YAP_ArgOfTerm(1,call); if (YAP_IsFloatTerm(a1)) { - YAP_ShutdownGoal( TRUE ); return (lbfgsfloatval_t) YAP_FloatOfTerm(a1); } else if (YAP_IsIntTerm(a1)) { - YAP_ShutdownGoal( TRUE ); return (lbfgsfloatval_t) YAP_IntOfTerm(a1); } - YAP_ShutdownGoal( TRUE ); fprintf(stderr, "ERROR: The evaluate call back function did not return a number as first argument.\n"); return 0; }