mirror of
https://github.com/ziglang/zig.git
synced 2026-01-12 18:35:12 +00:00
The @ptrCast(X, @alignCast(@alignOf(T), Y)) pattern is only correct if T is not a function type or a pointer, in that case the @alignOf refers to the pointer itself and not to the pointee type.