From 01de9c0b38ad062104b028be278e41826d095cec Mon Sep 17 00:00:00 2001 From: vsc Date: Thu, 10 Nov 2005 12:10:58 +0000 Subject: [PATCH] fixed ~D of 0 git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1451 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- C/iopreds.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C/iopreds.c b/C/iopreds.c index f2eaa436b..f2ba7dc7a 100644 --- a/C/iopreds.c +++ b/C/iopreds.c @@ -4069,6 +4069,9 @@ format(volatile Term otail, volatile Term oargs, int sno) if (dec < 0) { dec = -dec; f_putc(sno, (int) '-'); + } else if (dec == 0) { + f_putc(sno, '0'); + break; } i = dec; siz = 0;