diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2012-02-28 12:42:08 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2012-02-28 12:42:08 +0200 |
commit | 973e9fb294dc05a384ecae7623923ae53cb81806 (patch) | |
tree | 8f1499cd7e9de9b63e1ccff755d36393b1eb4aa7 /contrib/intarray/_intbig_gist.c | |
parent | 41e3c94cac0e68257126b2d264dc5e877e892490 (diff) | |
download | postgresql-973e9fb294dc05a384ecae7623923ae53cb81806.tar.gz postgresql-973e9fb294dc05a384ecae7623923ae53cb81806.zip |
Add const qualifiers where they are accidentally cast away
This only produces warnings under -Wcast-qual, but it's more correct
and consistent in any case.
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 eb8f2826349..c6b00eaeff0 100644 --- a/contrib/intarray/_intbig_gist.c +++ b/contrib/intarray/_intbig_gist.c @@ -332,7 +332,7 @@ typedef struct static int comparecost(const void *a, const void *b) { - return ((SPLITCOST *) a)->cost - ((SPLITCOST *) b)->cost; + return ((const SPLITCOST *) a)->cost - ((const SPLITCOST *) b)->cost; } |