aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/extern_function_with_comptime_parameter.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-03-09 18:06:56 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-03-15 10:48:14 -0700
commit25c3878c00b92ffc884d89d32817ca9c244f7972 (patch)
treefa75c028981da826805ce1db00c21cfa671a36e7 /test/cases/compile_errors/extern_function_with_comptime_parameter.zig
parent7db74009db4a4dc820e3e32c805ab7e29394205b (diff)
downloadzig-25c3878c00b92ffc884d89d32817ca9c244f7972.tar.gz
zig-25c3878c00b92ffc884d89d32817ca9c244f7972.zip
std.fs.File.readvAll: fix behavior for 0-length vectors
The OS layer expects pointer addresses to be inside the application's address space even if the length is zero. Meanwhile, in Zig, slices may have undefined pointer addresses when the length is zero. So this function now modifies the iov_base fields when the length is zero.
Diffstat (limited to 'test/cases/compile_errors/extern_function_with_comptime_parameter.zig')
0 files changed, 0 insertions, 0 deletions