aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-06-05 21:48:22 +0300
committerAndrew Kelley <andrew@ziglang.org>2022-06-06 13:11:54 -0700
commit14685e59b26c8dc002ce6c25c6916cbad54e79d0 (patch)
tree00ed70d37e4a50a99170d75859471b519da3c453 /src/Module.zig
parent32568dba742a31051f2390b55b936a03b5146e17 (diff)
downloadzig-14685e59b26c8dc002ce6c25c6916cbad54e79d0.tar.gz
zig-14685e59b26c8dc002ce6c25c6916cbad54e79d0.zip
stage2: use correct type (u29) for alignment
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index f8d662ae1f..12d311046a 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -4016,7 +4016,7 @@ fn semaDecl(mod: *Module, decl_index: Decl.Index) !bool {
try wip_captures.finalize();
const src: LazySrcLoc = .{ .node_offset = 0 };
const decl_tv = try sema.resolveInstValue(&block_scope, src, result_ref);
- const decl_align: u16 = blk: {
+ const decl_align: u32 = blk: {
const align_ref = decl.zirAlignRef();
if (align_ref == .none) break :blk 0;
break :blk try sema.resolveAlign(&block_scope, src, align_ref);