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/_int_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/_int_gist.c')
| -rw-r--r-- | contrib/intarray/_int_gist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/intarray/_int_gist.c b/contrib/intarray/_int_gist.c index e4b923523b..2d5e82a459 100644 --- a/contrib/intarray/_int_gist.c +++ b/contrib/intarray/_int_gist.c @@ -425,7 +425,7 @@ g_int_picksplit(PG_FUNCTION_ARGS) union_d = inner_int_union(datum_r, datum_alpha); rt__int_size(union_d, &size_beta); pfree(union_d); - costvector[i - 1].cost = abs((size_alpha - size_l) - (size_beta - size_r)); + costvector[i - 1].cost = Abs((size_alpha - size_l) - (size_beta - size_r)); } qsort((void *) costvector, maxoff, sizeof(SPLITCOST), comparecost); |
