Skip to content

暗黙の型変換の説明を修正する #1

Closed
@mizdra

Description

@mizdra

現状wasmの仕様にu32が存在すると記載しているが, 実際にはプリミティブ型は i32 i64 f32 f64 の4つしか無い. これはwasmではプリミティブ型で符号を区別せず, オペレータ側で符号を区別するというwasmの思想に由来する. オペレータの定義に u32 が利用されていたため, プリミティブ型にもu32が存在するとすっかり勘違いしていた…

The types 𝗂𝟥𝟤 and 𝗂𝟨𝟦 classify 32 and 64 bit integers, respectively. Integers are not inherently signed or unsigned, their interpretation is determined by individual operations.

https://webassembly.github.io/spec/core/syntax/types.html#value-types

以下の内容を含むよう文章を変更したい.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions