Skip to content

Commit

Permalink
TODO: change default to i64
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing committed Dec 6, 2023
1 parent b0048ef commit 12509d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/orb/to_wat/instructions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12509d5

Please sign in to comment.