# bpf: use bitCast instead of intCast in ld_imm_impl · gitcafe/zig

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

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

Visibility: public

Requested revision: 05b7ca6356e4f394c084de8e806c1c93440e0b6b

Requested commit: 05b7ca6356e4f394c084de8e806c1c93440e0b6b

Commit: 05b7ca6356e4f394c084de8e806c1c93440e0b6b

Tree: ef44d3e774d40a44f658e2f3fb13ec0574e1a3b2

Author: George Huebner

Committer: Alex Rønne Petersen

## Message

```
bpf: use bitCast instead of intCast in ld_imm_impl

Any 32 bit immediate is allowed in a BPF instruction, including those
greater than the largest positive i32 value.

```

## Parents

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

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