From 6159bdfcdb30fc610f35b409ee1ba6ead1f6e1d6 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 31 May 2012 15:47:35 -0300 Subject: [PATCH] b2/dump.c (dump_rel): use %g also for tolerances in percent --- b2/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b2/dump.c b/b2/dump.c index 475c226..31d3f8b 100644 --- a/b2/dump.c +++ b/b2/dump.c @@ -50,7 +50,7 @@ void dump_abs(FILE *file, const struct format *fmt, const struct value *v) void dump_rel(FILE *file, const struct format *fmt, const struct value *v) { if (v->u.rel.fract) - fprintf(file, "-%f/+%f%%", + fprintf(file, "-%g/+%g%%", v->u.rel.minus*100, v->u.rel.plus*100); else fprintf(file, "-%g/+%g%s",