Skip to content

compiler: fix subword literal narrowing logic in the wasm NCG

Cheng Shao requested to merge type-dance/ghc:wasm-ncg-fix-narrowing into master

This patch fixes the W8/W16 literal narrowing logic in the wasm NCG, which used to lower it to something like i32.const -1, without properly zeroing-out the unused higher bits. Fixes #22608 (closed).

Merge request reports