fix .0002 in new ~D
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1455 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
fe36f4f441
commit
f300bb7cb4
@ -4110,7 +4110,15 @@ format(volatile Term otail, volatile Term oargs, int sno)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (repeats) {
|
if (repeats) {
|
||||||
|
if (ptr == tmp1 ||
|
||||||
|
ptr[-1] == '-') {
|
||||||
|
f_putc(sno, (int) '0');
|
||||||
|
}
|
||||||
f_putc(sno, (int) '.');
|
f_putc(sno, (int) '.');
|
||||||
|
while (repeats > siz) {
|
||||||
|
f_putc(sno, (int) '0');
|
||||||
|
repeats--;
|
||||||
|
}
|
||||||
while (repeats) {
|
while (repeats) {
|
||||||
f_putc(sno, (int) (*ptr++));
|
f_putc(sno, (int) (*ptr++));
|
||||||
repeats--;
|
repeats--;
|
||||||
|
Reference in New Issue
Block a user