We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf941d03 commit12cc299Copy full SHA for 12cc299
src/backend/lib/bipartite_match.c
@@ -21,7 +21,8 @@
21
22
#include"lib/bipartite_match.h"
23
#include"miscadmin.h"
24
-#include"utils/palloc.h"
+#include"utils/builtins.h"
25
+
26
27
staticboolhk_breadth_search(BipartiteMatchState*state);
28
staticboolhk_depth_search(BipartiteMatchState*state,intu,intdepth);
@@ -87,7 +88,7 @@ hk_breadth_search(BipartiteMatchState *state)
87
88
intqtail=0;/* so don't have to worry about wrapping */
89
intu;
90
-distance[0]=INFINITY;
91
+distance[0]=get_float4_infinity();
92
93
for (u=1;u <=usize;++u)
94
{
@@ -97,7 +98,7 @@ hk_breadth_search(BipartiteMatchState *state)
97
98
queue[qhead++]=u;
99
}
100
else
-distance[u]=INFINITY;
101
+distance[u]=get_float4_infinity();
102
103
104
while (qtail<qhead)
@@ -156,6 +157,6 @@ hk_depth_search(BipartiteMatchState *state, int u, int depth)
156
157
158
159
160
161
return false;
162