summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-01-14 06:20:40 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-01-14 06:20:40 -0800
commitb6c30203f87937861faeda6674911c32d764b2c7 (patch)
treefd71073480ebd7070b082ada7cef8d83b31c373c /lib.c
parentdf8eacf8034abab8c942fce1ea3834e8af767b42 (diff)
downloadtxr-b6c30203f87937861faeda6674911c32d764b2c7.tar.gz
txr-b6c30203f87937861faeda6674911c32d764b2c7.tar.bz2
txr-b6c30203f87937861faeda6674911c32d764b2c7.zip
Bugfix: *print-flo-format* used for integer output.
* lib.c (obj_print_impl): Handle NUM and BGNUM separately from FLNUM, thorugh a hard-coded "~s" format.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index 437f8716..34ecbb77 100644
--- a/lib.c
+++ b/lib.c
@@ -8526,6 +8526,8 @@ finish:
break;
case NUM:
case BGNUM:
+ format(out, lit("~s"), obj, nao);
+ break;
case FLNUM:
{
val fmt = cdr(lookup_var(nil, print_flo_format_s));