# codegen.wasm: fix 64-bit saturating shl · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b3c498454b6006f64aecf96b181720c524d76ae8)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b3c498454b6006f64aecf96b181720c524d76ae8

Requested commit: b3c498454b6006f64aecf96b181720c524d76ae8

Commit: b3c498454b6006f64aecf96b181720c524d76ae8

Tree: 1537f8a4d09db631191642301505510fd228c22b

Author: Matthew Lugg

Committer: Matthew Lugg

## Message

```
codegen.wasm: fix 64-bit saturating shl

Previously, 64-bit '<<|' operations were emitting 64-bit shifts with one
64-bit operand and one 32-bit operand, which is illegal. Instead, as in
the lowering for regular shifts, we need to cast the RHS in this case.

```

## Parents

- [f7f0b9d28f2d68f40fcfe79f85b4cc37ea9ba2e8](https://git.cafe/gitcafe/zig/commit/f7f0b9d28f2d68f40fcfe79f85b4cc37ea9ba2e8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b3c498454b6006f64aecf96b181720c524d76ae8?format=markdown)
