mirror of
https://github.com/ziglang/zig.git
synced 2026-02-17 23:10:09 +00:00
work around C backend bug
This commit is contained in:
parent
05157e820a
commit
38458c6f70
@ -3337,7 +3337,8 @@ fn sortPhdrs(
|
||||
entry.* = .{ .phndx = @intCast(phndx) };
|
||||
}
|
||||
|
||||
mem.sort(Entry, entries, phdrs.items, Entry.lessThan);
|
||||
// The `@as` here works around a bug in the C backend.
|
||||
mem.sort(Entry, entries, @as([]const elf.Elf64_Phdr, phdrs.items), Entry.lessThan);
|
||||
|
||||
const backlinks = try gpa.alloc(u16, entries.len);
|
||||
defer gpa.free(backlinks);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user