From b7b92276752021b27d41ef473c11faef1c0bae26 Mon Sep 17 00:00:00 2001 From: Ayaz Hafiz Date: Wed, 13 Jul 2022 12:24:07 -0400 Subject: [PATCH] Num.toStr Dec for wasm --- crates/compiler/gen_wasm/src/low_level.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/compiler/gen_wasm/src/low_level.rs b/crates/compiler/gen_wasm/src/low_level.rs index 100e631451..8b7f6268e6 100644 --- a/crates/compiler/gen_wasm/src/low_level.rs +++ b/crates/compiler/gen_wasm/src/low_level.rs @@ -1966,7 +1966,7 @@ impl<'a> LowLevelCall<'a> { FloatWidth::F128 => todo!("F128 to Str"), }, Layout::Builtin(Builtin::Decimal) => { - todo!("Decimal to Str") + self.load_args_and_call_zig(backend, bitcode::DEC_TO_STR) } x => internal_error!("NumToStr is not defined for {:?}", x), }