Casting union fields to union type
DrDeano opened this issue · 0 comments
DrDeano commented
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