From 0fa9d0d256d3f24bdf87bec07b6cb848da24b7a2 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 2 Feb 2022 19:04:43 +0900 Subject: [PATCH] [qfcc] Tweak the printf to make more sense Though I'm sure I had a good reason at the time, seeing 6.98487e-315 when expecting pi is a bit disconcerting. --- tools/qfcc/test/double-alias.r | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/test/double-alias.r b/tools/qfcc/test/double-alias.r index 92eecd9c3..5df0d3398 100644 --- a/tools/qfcc/test/double-alias.r +++ b/tools/qfcc/test/double-alias.r @@ -25,8 +25,8 @@ alias_printf (string fmt, ...) // this will fail on big-endian systems fail = (@args.list[2].int_val != 0x54442d18 || @args.list[1].int_val != 0x400921fb); - printf ("%g %08x%08x\n", - @args.list[0].int_val, + printf ("%.17g %08x%08x\n", + @args.list[0].double_val, @args.list[2].int_val, @args.list[1].int_val); return fail;