aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorTadeo Kondrak <me@tadeo.ca>2020-09-26 12:00:41 -0600
committerTadeo Kondrak <me@tadeo.ca>2020-10-01 18:01:41 -0600
commit183d1d4ba1a855cc85ac93f51dec5f4b2301ce1d (patch)
tree6a6096eb39d715dc8f4321fc0ab453113eb3bff6 /lib/std
parent96a151d4b83ea4148db4d13b5576897645209f46 (diff)
downloadzig-183d1d4ba1a855cc85ac93f51dec5f4b2301ce1d.tar.gz
zig-183d1d4ba1a855cc85ac93f51dec5f4b2301ce1d.zip
Switch TypeInfo.Fn.alignment to comptime_int from u29
All integers in TypeInfo are intentionally comptime_int: https://github.com/ziglang/zig/issues/1683
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/builtin.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index 34452bee09..92fa78bc39 100644
--- a/lib/std/builtin.zig
+++ b/lib/std/builtin.zig
@@ -343,7 +343,7 @@ pub const TypeInfo = union(enum) {
/// therefore must be kept in sync with the compiler implementation.
pub const Fn = struct {
calling_convention: CallingConvention,
- alignment: u29,
+ alignment: comptime_int,
is_generic: bool,
is_var_args: bool,
return_type: ?type,