aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2023-05-06 17:10:48 +0200
committerLuuk de Gram <luuk@degram.dev>2023-05-19 20:18:59 +0200
commite20976b7f209a768cb55a37e6a58ed177d76013e (patch)
tree53a20b15a36ac7423d2e36a1f743b8b44c0243b6 /src/codegen
parentd353d208e295a01d6f844ccdb7e641a94e6fcb11 (diff)
downloadzig-e20976b7f209a768cb55a37e6a58ed177d76013e.tar.gz
zig-e20976b7f209a768cb55a37e6a58ed177d76013e.zip
wasm: fix miscompilation for shifting
This fix ensures that when we are shifting left or right, both operands have the same WebAssembly type. e.g. it's not possible to shift a 64 bit integer and 32 bit integer together and will fail WebAssembly's validator. By first coercing the values to the same type, we ensure we satisfy the validator.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions