Skip to content

Commit

Permalink
Document it’s unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing committed Nov 4, 2024
1 parent ab27ea7 commit 736ed75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions lib/orb/i32/u16.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
defmodule Orb.I32.U16 do
@moduledoc """
Type for unsigned 32-bit integer interpreted as unsigned 16-bit (double byte).
"""

with @behaviour Orb.CustomType do
@impl Orb.CustomType
def wasm_type(), do: :i32

@impl Orb.CustomType
def load_instruction(), do: :load16_u
end
end
2 changes: 1 addition & 1 deletion lib/orb/i32/u8.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule Orb.I32.U8 do
@moduledoc """
Type for unsigned 32-bit integer interpreted as an 8-bit byte.
Type for unsigned 32-bit integer interpreted as an unsigned 8-bit byte.
"""

with @behaviour Orb.CustomType do
Expand Down

0 comments on commit 736ed75

Please sign in to comment.