diff options
| author | Tom Lane | 2004-10-21 19:28:36 +0000 |
|---|---|---|
| committer | Tom Lane | 2004-10-21 19:28:36 +0000 |
| commit | c973741d97a12352afd92da2fba228709b8cea54 (patch) | |
| tree | 0530a2874d2b22df52444aa5b8e54b4fd7b1e297 /contrib/intarray/_intbig_gist.c | |
| parent | 4fd0f33c8e9bf96464661576ff514bb2bd9ed318 (diff) | |
Standardize on using the Min, Max, and Abs macros that are in our c.h file,
getting rid of numerous ad-hoc versions that have popped up in various
places. Shortens code and avoids conflict with Windows min() and max()
macros.
Diffstat (limited to 'contrib/intarray/_intbig_gist.c')
| -rw-r--r-- | contrib/intarray/_intbig_gist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/intarray/_intbig_gist.c b/contrib/intarray/_intbig_gist.c index efd70758dc..07a051dd50 100644 --- a/contrib/intarray/_intbig_gist.c +++ b/contrib/intarray/_intbig_gist.c @@ -402,7 +402,7 @@ g_intbig_picksplit(PG_FUNCTION_ARGS) _j = GETENTRY(entryvec, j); size_alpha = hemdist(datum_l, _j); size_beta = hemdist(datum_r, _j); - costvector[j - 1].cost = abs(size_alpha - size_beta); + costvector[j - 1].cost = Abs(size_alpha - size_beta); } qsort((void *) costvector, maxoff, sizeof(SPLITCOST), comparecost); |
