aboutsummaryrefslogtreecommitdiff
path: root/std/io.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-08-31 01:01:37 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-08-31 01:01:37 -0400
commit99170aa13db236b47aa8fda4a3d94b49e6b7f93c (patch)
treeccf0a580b30163336f43590c8dc60ce7b2fa3030 /std/io.zig
parent72185e7dd36d9b87c57a3ed3719b9824ca11edf9 (diff)
downloadzig-99170aa13db236b47aa8fda4a3d94b49e6b7f93c.tar.gz
zig-99170aa13db236b47aa8fda4a3d94b49e6b7f93c.zip
finding source file, line, and column info
Diffstat (limited to 'std/io.zig')
-rw-r--r--std/io.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/io.zig b/std/io.zig
index 2de52493b1..a1a77271e1 100644
--- a/std/io.zig
+++ b/std/io.zig
@@ -210,7 +210,7 @@ pub fn InStream(comptime ReadError: type) type {
pub fn readStruct(self: *Self, comptime T: type, ptr: *T) !void {
// Only extern and packed structs have defined in-memory layout.
- assert(@typeInfo(T).Struct.layout != builtin.TypeInfo.ContainerLayout.Auto);
+ comptime assert(@typeInfo(T).Struct.layout != builtin.TypeInfo.ContainerLayout.Auto);
return self.readNoEof(@sliceToBytes((*[1]T)(ptr)[0..]));
}
};