From 05843d3b130cd83cc3e8395c116f8ce050030ca0 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 19 Apr 2016 20:48:12 -0500 Subject: [PATCH] Use "%#g" when disassembly floating point constants - With "%g", there would be no decimal point if the number had no fractional part, making the output indistinguishable from integers. --- src/zscript/vmdisasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zscript/vmdisasm.cpp b/src/zscript/vmdisasm.cpp index d2a54274c..35eb6085d 100644 --- a/src/zscript/vmdisasm.cpp +++ b/src/zscript/vmdisasm.cpp @@ -476,7 +476,7 @@ static int print_reg(FILE *out, int col, int arg, int mode, int immshift, const case MODE_KF: if (func != NULL) { - return col+printf_wrapper(out, "%g", func->KonstF[arg]); + return col+printf_wrapper(out, "%#g", func->KonstF[arg]); } return col+printf_wrapper(out, "kf%d", arg); case MODE_KS: