diff options
| author | LemonBoy <thatlemon@gmail.com> | 2021-04-25 16:50:41 +0200 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2021-04-25 16:50:41 +0200 |
| commit | ae15022406e5d59787195130cfd5261c6336f41c (patch) | |
| tree | ff5184e7f432c08496bcbee186f5c5856c6efca1 /src/stage1/analyze.cpp | |
| parent | 19cec0db1e8a9fefd8295c81edb03d631c624e62 (diff) | |
| download | zig-ae15022406e5d59787195130cfd5261c6336f41c.tar.gz zig-ae15022406e5d59787195130cfd5261c6336f41c.zip | |
translate-c: Fix casting of function pointers
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.
Diffstat (limited to 'src/stage1/analyze.cpp')
0 files changed, 0 insertions, 0 deletions
