aboutsummaryrefslogtreecommitdiff
path: root/std/os.zig
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2019-04-20 22:43:53 +0200
committerAndrew Kelley <andrew@ziglang.org>2019-04-29 21:30:19 -0400
commit77383f968dde1e0d5d98865db8f560691d5f2afe (patch)
treea89e9016107532754a28a70b26625156a5d6cbc6 /std/os.zig
parentb1a61a6d51919cb8d5d87c53d495406491c53ebf (diff)
downloadzig-77383f968dde1e0d5d98865db8f560691d5f2afe.tar.gz
zig-77383f968dde1e0d5d98865db8f560691d5f2afe.zip
translate-c: Emit @ptrCast + @alignPtr sequence
Avoid producing Zig code that doesn't compile due to mismatched alignments between pointers. Always emit a @alignOf instead of hardcoding the alignment value returned by LLVM for portability sake of the generated code.
Diffstat (limited to 'std/os.zig')
0 files changed, 0 insertions, 0 deletions