From 09d7db6a8360e6b9b881582c1754777f7fb3417f Mon Sep 17 00:00:00 2001 From: Lucas Smith Date: Sat, 1 Apr 2023 10:20:09 +1100 Subject: [PATCH] disassembler: don't force precision for dumpDouble Forcing precision would cause the parsing MAX_DOUBLE to fail which would result in the `.asasm` output being blank, disabling the forced precision allows it to continue without any regressions as far as I can tell. --- disassembler.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disassembler.d b/disassembler.d index 4dec98e..b29d292 100644 --- a/disassembler.d +++ b/disassembler.d @@ -1144,7 +1144,7 @@ final class Disassembler else { StaticBuf!(char, 64) buf; - formattedWrite(&buf, "%.18g", v); + formattedWrite(&buf, "%g", v); char[] s = buf.data(); static double forceDouble(double d) { static double n; n = d; return n; }