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.
LemonBoy committed on 4/25/2021, 2:50:41 PMparent19cec0d
3 files changedLine totals unavailable