Commit 5d2e8ca
authored
Update casts for latest Zig (#19)
* `@enumToInt` => `@intFromEnum`
The `@enumToInt` built-in was just renamed to `@intFromEnum`.
ref: ziglang/zig@a6c8ee5
* `@bitCast` no longer needs the type parameter
`@bitCast` and other casts no longer need
the destination type as an argument.
ref: ziglang/zig#161631 parent 1bc351a commit 5d2e8ca
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments