Skip to content

Commit edabcf6

Browse files
fribeirofalexrp
authored andcommitted
std.DynLib: fix proper type of chain_ptr on GnuHashSection32
Type is correct on GnuHashSection64 but not on 32 bit version. Change it so use of DynLib on 32-bit archs compiles.
1 parent 4fad60f commit edabcf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/dynamic_library.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ pub const ElfDynLib = struct {
397397

398398
const bloom_ptr: [*]u32 = @ptrFromInt(bloom_offset);
399399
const buckets_ptr: [*]u32 = @ptrFromInt(buckets_offset);
400-
const chain_ptr: [*]u32 = @ptrFromInt(chain_offset);
400+
const chain_ptr: [*]elf.gnu_hash.ChainEntry = @ptrFromInt(chain_offset);
401401

402402
return .{
403403
.symoffset = header.symoffset,

0 commit comments

Comments
 (0)