From cf0cf32d276002e850a87667fff62c4df12999d6 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Tue, 20 Jul 2021 13:13:52 -0700 Subject: make -d:nimFpRoundtrips work consistently in vm vs rt, fix #18400, etc (#18531) * compiler/vmhooks: add getVar to allow vmops with var params * addFloat vmops with var param * cgen now renders float32 literals in c backend using roundtrip float to string --- lib/system.nim | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/system.nim') diff --git a/lib/system.nim b/lib/system.nim index e878f9f2f..1da1444d2 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2472,9 +2472,6 @@ when defined(js) or defined(nimscript): proc addInt*(result: var string; x: int64) = result.add $x - proc addFloat*(result: var string; x: float) = - result.add $x - proc quit*(errormsg: string, errorcode = QuitFailure) {.noreturn.} = ## A shorthand for `echo(errormsg); quit(errorcode)`. when defined(nimscript) or defined(js) or (hostOS == "standalone"): -- cgit 1.4.1-2-gfad0