From 0e6cb326dae725a297cfe25c7681ab38082c2830 Mon Sep 17 00:00:00 2001 From: vsc Date: Mon, 21 Nov 2005 12:34:07 +0000 Subject: [PATCH] fix NULL when using ~d to write negative numbers git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1464 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- C/iopreds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C/iopreds.c b/C/iopreds.c index c57338e08..bc7097c60 100644 --- a/C/iopreds.c +++ b/C/iopreds.c @@ -4066,7 +4066,7 @@ format(volatile Term otail, volatile Term oargs, int sno) char *ptr = tmp1; if (IsIntegerTerm(t)) { - UInt il = IntegerOfTerm(t); + Int il = IntegerOfTerm(t); #if HAVE_SNPRINTF snprintf(tmp1, 256, "%d", il); #else