diff options
| author | Ali Chraghi <alichraghi@proton.me> | 2023-05-23 15:33:12 +0330 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-05-23 17:55:59 -0700 |
| commit | 3db3cf77904e664d589287602c14168a7a63f125 (patch) | |
| tree | 62bec3710d6b806d54718475bf7a3673ba1a67a5 /src/objcopy.zig | |
| parent | bfe02ff61a8861c269524c60668a3969cb053720 (diff) | |
| download | zig-3db3cf77904e664d589287602c14168a7a63f125.tar.gz zig-3db3cf77904e664d589287602c14168a7a63f125.zip | |
std.sort: add pdqsort and heapsort
Diffstat (limited to 'src/objcopy.zig')
| -rw-r--r-- | src/objcopy.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objcopy.zig b/src/objcopy.zig index 12129aba9c..c5d0e8dcb3 100644 --- a/src/objcopy.zig +++ b/src/objcopy.zig @@ -402,7 +402,7 @@ const BinaryElfOutput = struct { } } - std.sort.sort(*BinaryElfSegment, self.segments.items, {}, segmentSortCompare); + mem.sort(*BinaryElfSegment, self.segments.items, {}, segmentSortCompare); for (self.segments.items, 0..) |firstSegment, i| { if (firstSegment.firstSection) |firstSection| { @@ -427,7 +427,7 @@ const BinaryElfOutput = struct { } } - std.sort.sort(*BinaryElfSection, self.sections.items, {}, sectionSortCompare); + mem.sort(*BinaryElfSection, self.sections.items, {}, sectionSortCompare); return self; } |
