Skip to content

Commit 9dd5992

Browse files
committed
stagex: infinity_net: use sort_r() instead of qsort_r()
1 parent e841eb4 commit 9dd5992

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stages/stagex/spells/infinity_net.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include "spells.h"
1010

11+
#include "util/sort_r.h"
12+
1113
typedef struct LatticeNode LatticeNode;
1214
struct LatticeNode {
1315
cmplx ofs;
@@ -100,7 +102,7 @@ static void init_idxmap(int num_nodes, int idxmap[num_nodes], LatticeNode nodes[
100102
idxmap[i] = i;
101103
}
102104

103-
qsort_r(idxmap, num_nodes, sizeof(*idxmap), idxmap_cmp, nodes);
105+
sort_r(idxmap, num_nodes, sizeof(*idxmap), idxmap_cmp, nodes);
104106
}
105107

106108
#define MAX_RANK 0xffffffff

0 commit comments

Comments
 (0)