From af6ac944519ba251bbb530ecb1563fb0788da7ad Mon Sep 17 00:00:00 2001 From: vsc Date: Thu, 20 Mar 2003 14:21:12 +0000 Subject: [PATCH] fixed the way syntax errors are sent out in number_atom git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@800 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- C/stdpreds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C/stdpreds.c b/C/stdpreds.c index 7533af1fc..219fb4c31 100644 --- a/C/stdpreds.c +++ b/C/stdpreds.c @@ -1051,7 +1051,7 @@ p_number_atom(void) } s = RepAtom(AtomOfTerm(t))->StrOfAE; if ((NewT = get_num(s)) == TermNil) { - Yap_Error(SYNTAX_ERROR, Deref(ARG2), "number_atom/2", String); + Yap_Error(SYNTAX_ERROR, gen_syntax_error("number_atom"), "while scanning %s", s); return (FALSE); } return (Yap_unify(ARG1, NewT));