Closed jannehellsten closed 1 year ago
Could this be related to this (to be merged) PR?
https://github.com/floooh/sokol-zig/pull/39
Apparently Zig changed the type cast builtins so that the target type comes before the source type (e.g.@intToEnum
becomes @enumFromInt
).
It's related but the patch in #39 is already out of date. :) It affects things like @intCast(dest_type, value)
that's now just @intCast(value)
(dest type is inferred).
See https://ziggit.dev/t/major-zig-language-update-just-landed-removal-of-destination-type-from-all-cast-builtins/898/1 for more info.
Ah, inferring the dest type is a lot nicer I must say :)
Working on updating the PR
Closing this ticket, because all related PRs have been merged.
Here's a diff against some older version of sokol for reference.
zig-churn.txt
(There's also some extra commas as I accidentally ran the source through
zig fmt
in VSCode. Might not be a bad idea to usezig fmt
for all the sources so that patches sent won't show large whitespace diffs.)