mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
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.
This commit is contained in:
parent
4fad60fd3a
commit
edabcf6192
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ pub const ElfDynLib = struct {
|
||||||
|
|
||||||
const bloom_ptr: [*]u32 = @ptrFromInt(bloom_offset);
|
const bloom_ptr: [*]u32 = @ptrFromInt(bloom_offset);
|
||||||
const buckets_ptr: [*]u32 = @ptrFromInt(buckets_offset);
|
const buckets_ptr: [*]u32 = @ptrFromInt(buckets_offset);
|
||||||
const chain_ptr: [*]u32 = @ptrFromInt(chain_offset);
|
const chain_ptr: [*]elf.gnu_hash.ChainEntry = @ptrFromInt(chain_offset);
|
||||||
|
|
||||||
return .{
|
return .{
|
||||||
.symoffset = header.symoffset,
|
.symoffset = header.symoffset,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue