diff options
| author | Luuk de Gram <luuk@degram.dev> | 2023-05-06 17:10:48 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2023-05-19 20:18:59 +0200 |
| commit | e20976b7f209a768cb55a37e6a58ed177d76013e (patch) | |
| tree | 53a20b15a36ac7423d2e36a1f743b8b44c0243b6 /src/codegen | |
| parent | d353d208e295a01d6f844ccdb7e641a94e6fcb11 (diff) | |
| download | zig-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
