From 12509d50a543f7ecfe100ad7d80840a59f8d201d Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Wed, 6 Dec 2023 22:05:49 +1100 Subject: [PATCH] TODO: change default to i64 --- lib/orb/to_wat/instructions.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/orb/to_wat/instructions.ex b/lib/orb/to_wat/instructions.ex index 8c661a7..1d9fe6d 100644 --- a/lib/orb/to_wat/instructions.ex +++ b/lib/orb/to_wat/instructions.ex @@ -31,7 +31,7 @@ defmodule Orb.ToWat.Instructions do # def do_wat({:local_get, identifier}, indent), do: "#{indent}(local.get $#{identifier})" # def do_wat({:local_tee, identifier}, indent), do: "#{indent}(local.tee $#{identifier})" def do_wat({:local_set, identifier}, indent), do: "#{indent}(local.set $#{identifier})" - # TODO: how do we support 64-bit integers? + # TODO: change default to i64 def do_wat(value, indent) when is_integer(value), do: "#{indent}(i32.const #{value})" # TODO: how do we support 64-bit floats? # Note that Rust defaults to 64-bit floats: https://doc.rust-lang.org/book/ch03-02-data-types.html