aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-09-21 15:27:25 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-09-21 15:27:25 -0700
commit55bc8a7fa9b820766df2e7625afdd7e88863cc96 (patch)
treef590762b297450451df9a322bea89c7bfa57899f /src/Module.zig
parent2e5d13e9cf55ee66c544950b59f8620e626801a7 (diff)
downloadzig-55bc8a7fa9b820766df2e7625afdd7e88863cc96.tar.gz
zig-55bc8a7fa9b820766df2e7625afdd7e88863cc96.zip
compiler: fix compilation for 32-bit targets
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 cb6600696d..17a97e6c6d 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -6657,7 +6657,7 @@ pub fn structFieldAlignmentExtern(mod: *Module, field_ty: Type) Alignment {
pub fn structPackedFieldBitOffset(
mod: *Module,
struct_type: InternPool.Key.StructType,
- field_index: usize,
+ field_index: u32,
) u16 {
const ip = &mod.intern_pool;
assert(struct_type.layout == .Packed);