mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
[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.
This commit is contained in:
parent
a64f91129f
commit
0fa9d0d256
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue