pluto
pluto copied to clipboard
Casting union fields to union type
In VFS, we need to cast a element of the union Node
to the Node
type. This is currently done using @ptrCast
but will have undefined behavior if the memory layout is not as expected.
What we need is @fieldParentPtr
, but is not implemented yet: ziglang/zig#6611